[Zope-dev] A simple dtml-if question...
Jeff Nielsen / UgoFast
Ugo@speakeasy.net
Wed, 6 Jun 2001 22:24:17 -0700
Thanks Eric, I tried it and it didn't work. I went with the long way:
<dtml-if expr="LoginResults=='Pass'">
<dtml-if expr="PATH_INFO=='/Maintain/Results'">
Valid response
<dtml-else>
False response
</dtml-if>
<dtml-else>
False response
</dtml-if>
Jeff
-----Original Message-----
From: E. Seifert [mailto:e.seifert@gmx.net]
Sent: Wednesday, June 06, 2001 2:02 AM
To: Jeff Nielsen / UgoFast
Cc: zope-dev@zope.org
Subject: Re: [Zope-dev] A simple dtml-if question...
Hi Jeff,
Jeff Nielsen wrote:
> How do I construct a dtml-if statement with two conditions joined by "and"
> logic? I want to do something like this:
>
> <dtml-if expr="LoginResults=='Pass'" .and. expr="PATH_INFO=='/'">
Did you try
<dtml-if expr="LoginResults=='Pass' and PATH_INFO=='/'">
Regards
Eric