[Zope] Re[2]: [Zope] assignment problems

Geir B Hansen Geir B Hansen <geirh@funcom.com>
Tue, 4 Jan 2000 11:54:09 +0100


on 4. januar 2000 Milos Prudek wrote :
>> you're closing your let-tag before testing for 'big'..

MP> Okay. So let tag is defining a namespace, and I can define several
MP> variables within one let tag. What if I want to change a few of those
MP> variables inside the namespace? How can I iterate over a numeric or text
MP> variable?

MP> Anyway, I tried your code and it gave the same error as before. I also
MP> tried to add double quotes as you mentioned in your mail on 9.12.1999: 

sorry for sending untested code..
you're right, it doesnt work..
this one will do what you want, althouth in a slightly diferent way :

<dtml-with "_.namespace(Size='big')">
<dtml-if "Size=='big'"><h1></dtml-if>
Hello.
<dtml-if "Size=='big'"></h1></dtml-if>
</dtml-with>


--
Geir B Hansen
web-developer/designer
geirh@funcom.com
http://www.funcom.com