[Zope] <dtml-if> no-work

Michel Pelletier michel@digicool.com
Mon, 6 Dec 1999 17:21:24 -0500


> -----Original Message-----
> From: Anders Gaarsdal Holst [mailto:anders@colorweb.dk]
> Sent: Sunday, December 05, 1999 2:01 PM
> To: zope@zope.org
> Subject: [Zope] <dtml-if> no-work
> 
> 
> Hi!
> 
> I have now run into yet another problem on my way to Zope nirvana: I
> have
> the following expression:
> 
>    <dtml-var personelID> = <dtml-var personelID_page>
>    <dtml-if "personelID == personelID_page">
>      ..........................
> 
> It prints for instance:
> 1 = 1
> 
> But even though it prints that the two vars equals each other, it does
> not execute the <dtml-if> statement. Is this caused by a integer /
> string problem?

I'd bet 5 bucks it is.  To be sure, cast them both to integers with
_.int()

-Michel