[Zope] Boolean

Chris Larson clarson@changeling.com
Tue, 4 May 1999 18:15:39 -0500


>After reading again for a boolean info the DTML docs, I can't seem to
>see the best route to test in DTML.  
>I tried a simple <!--#if "foo is true"-->, didn't work
>
>I thought, since bolean deal with 1 and 0, I'd use 
><!--#if "foo==1"--> for true and 
><!--#if "foo==0"--> for false.  That didn't work either.
>
>If I however used blank or '' as the search criteria it worked, as in
><!--#if "foo==''"--> for true, and nothing for false.
>
>Whats going on with boolean, and can somebody point in the right
>direction?

Jason,

Try:

<!--#if foo-->

Take care,

Chris Larson
Changeling, Inc