[Zope] IF syntax

Oleg Broytmann Oleg Broytmann <phd@mail2.phd.pp.ru>
Wed, 7 Mar 2001 18:41:13 +0300 (MSK)


On Wed, 7 Mar 2001, Rubinstein Fredrik wrote:
> However the if clause wont work for days with a daynumber below 10 since in
> my example
> below the DateTime.dd will return 07 and my sequence-item has the value of
> 7.

   You, probably, compare strings "7" and "07". Convert them both to ints,
or zero-pad shorter string.

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.