[Zope] newbie dtml-if/expr ?

Dieter Maurer dieter@handshake.de
Mon, 11 Sep 2000 23:16:51 +0200 (CEST)


Daniel Chudnov writes:
 >   <dtml-if "var1 and var2">
 >    <dtml-call somefuncNeedingVar1AndVar2>
 >   </dtml-if>
<dtml-if var> is equivalent to <dtml-if "_.has_key('var') and var">.

Thus, for <dtml-if var1 and var2>, you should use:

	<dtml-if "(_.has_key('var1') and var1) and (_.has_key('var2') and var2)">


Dieter