10 Mar
2003
10 Mar
'03
10:14 a.m.
David Cain wrote:
I'm trying to compare two number, or at least I think they're numbers.
You should be asking this on zope@zope.org...
If I do: <dtml-var i> <dtml-var j> <dtml-if expr="i == j"> Equal block </dtml-if> I and J print out the same, but do not compare to be equal since "Equal block" string doesn't print.
...and this should be in a python script! print i print j if i==j: print "Equal block" return printed DTML sucks for this, as you can see, because it evaluates things in interesting and unexpected ways... cheers, Chris