The aim is to avoid setting always products.
On Sat, May 31, 2008 at 12:03 AM, Christoph Frick <[EMAIL PROTECTED]>
> 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"?
> PHPTAL mailing list
PHPTAL mailing list