[Zope] testing with dtml-if

garry saddington garry at joydiv.fsnet.co.uk
Fri Sep 5 19:52:14 EDT 2003


On Friday 05 September 2003 14:38, Chris Withers wrote:
> 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
>
Thanks for your help, but let me run this by you:

<dtml-if w>  does what it should do
but what you suggest does not work nor do any of the other combinations i have 
tried. I can demostrate that w=1 by displaying <dtml-var w>.
Any further ideas
regards
garry





More information about the Zope mailing list