Re: [Zope-dev] Stupid dtml-if comparision

2003-03-10 Thread Chris Withers
David Cain wrote:
I'm trying to compare two number, or at least I think they're numbers.
You should be asking this on [EMAIL PROTECTED]

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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Stupid dtml-if comparision

2003-03-06 Thread David Cain
I'm trying to compare two number, or at least I think they're numbers.

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.

I must be doing something wrong.  

Please, suggestions before I pull out all my hair.


David Cain
Senior Web Developer, Information Systems Department 
Syracuse University Library
Syracuse, New York 13244-2010
(315) 443-5923
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )