On Fri, May 30, 2008 at 07:04:47PM +0300, Anton Andrievskij wrote:

> How can I specify multiple conditions using AND logical operator and php:
> for one of the parts?
> I'm trying this but does not works:
> tal:condition="exists: products AND php:count(products) == 0"

in python an empty list is also false. iirc phptal works in the same
way. so maybe you are better of by setting products all the time - even
if the list is empty - and then just tal:condition="products"?


Attachment: pgpyAQYtfKCxW.pgp
Description: PGP signature

PHPTAL mailing list

Reply via email to