what simple error am I making? <dtml-if expr="(type==['course','event'])"> which i hoped would proceed on either basis but in fact always fails. ... <dtml-if expr="(type=='course')"> works ... Jonathan
On Wed, Mar 28, 2001 at 12:24:03PM +0100, Jonathan Cheyne wrote:
what simple error am I making?
<dtml-if expr="(type==['course','event'])">
which i hoped would proceed on either basis but in fact always fails.
... <dtml-if expr="(type=='course')"> works ...
What you want to say may be <dtml-if expr="type in ['course','event']"> if you are expecting type to be either 'course' or 'event' but not a list of the two strings (I took off the parentheses since they are superfluous). -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/
<dtml-if expr="type in ['course','event']"> ----- Original Message ----- From: "Jonathan Cheyne" <jonathan@nha.org.uk> To: <zope@zope.org> Sent: Wednesday, March 28, 2001 12:24 PM Subject: [Zope] syntax check
what simple error am I making?
<dtml-if expr="(type==['course','event'])">
which i hoped would proceed on either basis but in fact always fails.
... <dtml-if expr="(type=='course')"> works ...
Jonathan
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
<dtml-if expr="type in ['course','event']"> Brilliant. Cheers to the others who also helped ...
what simple error am I making?
<dtml-if expr="(type==['course','event'])">
which i hoped would proceed on either basis but in fact always fails.
... <dtml-if expr="(type=='course')"> works ...
Jonathan
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
J M Cerqueira Esteves -
Jonathan Cheyne -
Jonathan Cheyne -
Phil Harris