[Zope] testing with dtml-if

Mike Doanh Tran mtran at shufflemasterrd.com
Thu Sep 4 18:27:03 EDT 2003


<dtml-if "w==1">
  do stuffs
</dtml-if w==1>
if "w" was passed as a string then put single quotes around '1'  or convert 
it to an integer.

<dtml-if  "_.int(w)==1" >

cheers,

Mike 








On Thursday 04 September 2003 02:24 pm, 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>    ?
>
> thanks
> garry
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list