[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML
webmaster@zope.org
webmaster@zope.org
Tue, 24 Sep 2002 17:28:40 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx#2-96
---------------
Like the *if* tag, calling the *unless* tag by name does existence
checking, so::
<dtml-unless the_easter_bunny>
The Easter Bunny does not exist or is not true.
</dtml-unless>
% Anonymous User - Sep. 24, 2002 5:28 pm:
This comes nice to provide the REQUEST with default variables
(if they were not set in a previous html form) like
<dtml-unless "REQUEST.has_key('the_easter_bunny')">
<dtml-call "REQUEST.set('the_easter_bunny', 0)">
</dtml-unless>