[Zope-CMF] Cookies... (newbie)
Josef Albert Meile
jmeile@hotmail.com
Wed, 24 Oct 2001 10:38:28 -0000
> The problem is that the cookie is coming back as a text value and
is not
> evaluated by the IF block. If I specify the value as below it
works fine
> for testing. If I don't use the paren's but "'3'" it does not
work. I
> checked all the help I could find but am not seeing the solution.
There is a function called int() to do that conversion. You can
called it from Zope by doing the following:
<dtml-if expr="_.int(myString)>1">
do something
</dtml-if>