[Zope] testing with dtml-if

Dustin Mitchell dustin at ywlcs.org
Thu Sep 4 17:10:13 EDT 2003


On Thu, Sep 04, 2003 at 09:24:53PM +0100, 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>    ?

How is that different from

  <dtml-if expr="w == 1"> ...

or possibly

  <dtml-if expr="`w` == 1"> ...

Dustin

-- 

  Dustin Mitchell
  dustin at ywlcs.org/djmitche at alumni.uchicago.edu
  http://people.cs.uchicago.edu/~dustin/
  PGP Key: http://people.cs.uchicago.edu/~dustin/pubkey.txt



More information about the Zope mailing list