A simple dtml-if question...
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=='/'"> Jeff Nielsen / UgoFast http://www.UgoFast.com Jeff@UgoFast.com
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
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
participants (2)
-
E. Seifert -
Jeff Nielsen / UgoFast