Re: [Zope] Checking for a boolean property value in DTML
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>
I had tried that. It didn't work (much to my surprise). I'm rather purplexed. Thanks anyway, Ron
Python's true value need not be "1".
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
From: complaw@hal-pc.org Date: Fri, 15 Jun 2001 22:32:18 GMT To: Dieter Maurer <dieter@handshake.de>, complaw@hal-pc.org, zope@zope.org Subject: Re: [Zope] Checking for a boolean property value in DTML
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>
I had tried that. It didn't work (much to my surprise).
Wouldn't that be a check if the variable itself exists? I would think: <dtml-if expr="mental_steps_doctrine">
participants (2)
-
complaw@hal-pc.org -
marc lindahl