So what if the first part evaluates to false? Which is what would happen in
my case, it doesn't then test for the 2nd condition?

J

-----Original Message-----
From: Andreas Jung [mailto:[EMAIL PROTECTED] 
Sent: 22 August 2006 15:43
To: [EMAIL PROTECTED]; zope@zope.org
Subject: Re: [Zope] Multiple conditions inside tales



--On 22. August 2006 15:36:20 +0100 Jonathan Bowlas <[EMAIL PROTECTED]> 
wrote:

> Hi All,
>
> Just a quickie to see if I can do this:
>
> tal:condition="python:context.REQUEST.model.meta_type=='Silva Publication'
> or context.REQUEST.model.is_default()"
>


If the first part of the OR clause evaluates to True then there is no need
to evaluate the second part (optimization).

-aj


_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to