[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Dynamic Content with DTML

webmaster@zope.org webmaster@zope.org
Sat, 21 Sep 2002 20:51:52 -0400

A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/DTML.stx#2-78


    As with the *var* tag, you can use both name syntax and expression
    syntax. Here are some conditions expressed as DTML expressions.

      expr="1" -- Always true.

      expr="rhino" -- True if the rhino variable is true.

      expr="x < 5" -- True if x is less than 5.

      expr="objectValues('File')" -- True if calling the *objectValues*
      method with an argument of *File* returns a true value.  This
      method is explained in more detail in this chapter.

      % Anonymous User - Sep. 21, 2002 8:51 pm:
       Nonexistence in the if-tag: name syntax: falsehood, expr syntax: not found exception.