[PHPTAL] Multiple conditions
kornel at aardvarkmedia.co.uk
Fri May 30 18:22:53 CEST 2008
On Fri, 30 May 2008 17:04:47 +0100, Anton Andrievskij <x.meglio at gmail.com>
> 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"
TALES doesn't have any logical operators except alternative ("a | b |
You can use:
php:isset(products) and !count(products)
More information about the PHPTAL