[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Dynamic Content with DTML
webmaster@zope.org
webmaster@zope.org
Mon, 30 Sep 2002 17:14:10 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/DTML.stx#3-143
---------------
A *if* tag block can also contain a *elif* singleton tag. The *elif*
tag specifies another condition just like an addition *if* tag.
This lets you specify multiple conditions in one block::
<dtml-if expr="monkeys > monkey_limit">
<p>There are too many monkeys!</p>
<dtml-elif expr="monkeys < minimum_monkeys">
<p>There aren't enough monkeys!</p>
<dtml-else>
<p>There are just enough monkeys.</p>
</dtml-if>
% Anonymous User - Sep. 30, 2002 5:14 pm:
could you add a paragraph about multiple conditions?
I cant seem to guess the syntax for "monkeys=='true' or color=='blue'">
python conditional operators arent working.