[Zope] Checking for a boolean property value in DTML

Dieter Maurer dieter@handshake.de
Fri, 15 Jun 2001 23:11:32 +0200 (CEST)


complaw@hal-pc.org writes:
 > I have a boolean property in a DTML Document.  The boolean property is called 
 > "mental_steps_doctrine".  I want to list those documents that have 
 > mental_steps_doctrine set to "TRUE"....
 >           <dtml-if expr="mental_steps_doctrine == 1">
Try:
             <dtml-if mental_steps_doctrine>
Python's true value need not be "1".


Dieter