[Zope] Expression Evaluation Problem (Newbee Question)

J C Lawrence claw@kanga.nu
Sun, 30 Jan 2000 10:18:56 -0800


On Sun, 30 Jan 2000 12:20:49 +0100 (MET) 
Borno Janekovic <Borno.Janekovic@gmx.de> wrote:

> but if I do a check like <dtml-if "xtype ==1"> I get no matching.

I hit this.

The problem is a question of types.  xtype is of type string
(probably), and your literal '1' is of type int, so the comparison
fails.  Try this:

  <dtml-if "_.int(xtype) == _.int(1)">

-- 
J C Lawrence                                 Home: claw@kanga.nu
----------(*)                              Other: coder@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--