[Zope] syntax check

J M Cerqueira Esteves jmce@artenumerica.com
Wed, 28 Mar 2001 12:39:23 +0100


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/