[Zope] <dtml-if> newbie question
seb bacon
seb@jamkit.com
Thu, 9 Nov 2000 17:08:20 +0000
* Stephan Goeldi <stephan_goeldi@hotmail.com> [001109 16:49]:
> <dtml-in money>
> <dtml-if "1000">
> This is not much!
> </dtml-if>
> <dtml-if "5000">
> This is ok!
> </dtml-if>
> <dtml-if "10000">
> This is very much!
> </dtml-if>
> </dtml-in>
>
> I am sure that there is an error in my thinking of these tags.
yup :)
try
<dtml-if "money==1000">
This is not much
<dtml-elif "money==5000">
This is OK
<dtml-elif "money==10000">
This is very much
<dtml-else>
This is not 1000, 5000, or 10000
</dtml-if>
the <dtml-in> tag iterates over a list, which isn't appropriate here.
seb