[Zope] comparing two variables type="int"

Michael mlewis@exasource.com
Tue, 18 Jun 2002 16:54:20 -0600


Try <dtml-if expr="A == B">

Dieter Maurer wrote:

> Mike Tran writes:
>  > I have two variables A & B whose types are "int".  What is wrong with this 
>  > comparision?
>  > 
>  > (Assume A=5 and B=5)
>  > 
>  > <dtml-if "A==B"> 
>  > Then do something 
>  > </dtml-if>
> It is nothing wrong. It must work!
> 
> But DTML is dangerous.
> 
>    Sometimes, you do not get the objects you expect.
>    I expect that this is your true problem.
> 
> 
> Dieter
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
>