[Zope] testing with dtml-if

Chris Withers chrisw at nipltd.com
Fri Sep 5 15:38:12 EDT 2003


garry saddington wrote:
> Does anyone know the syntax to use with dtml-if when i want to do something 
> like this:
> 
> <dtml-if <dtml-var w>==1>
> 
> do stuff
> </dtml-if>    ?

<dtml-if "_.getitem('w')==1">
  do stuff
</dtml-if>    ?

cheers,

Chris

PS: Mvoe to ZPT and save yoruself long term pain...




More information about the Zope mailing list