[Zope] dtml-if question

Thierry FLORAC thierry.florac@onf.fr
Tue, 13 May 2003 13:51:58 +0200


On Tuesday 13 May 2003 11:22, n.a.s wrote:
> Hi,
>
> is it also possible to have an or clause in a dtml-if.
>
> The following didn't work:
>
> <dtml-if expr="_.has_key('nol') and nol=='root' or nol==''">
> ...
> </dtml-if>


Doesn't it work with braces ??

  <dtml-if "_.has_key('nol') and (nol=='root' or nol=='')">
  ...
  </dtml-if>


Thierry

-- 
  Linux every day, keeps Dr Watson away...
  http://gpc.sourceforge.net -- http://www.ulthar.net