[Zope] dtml-if question

Erwin Ambrosch erwin.ambrosch@aon.at
Tue, 13 May 2003 16:02:47 +0200


Thierry FLORAC wrote:
> 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
> 

Sorry, it works (my fault).

But how can I test of non existens of nol.

I would need something like

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

Thanks Erwin