[PHPTAL] Multiple conditions

Anton Andrievskij x.meglio at gmail.com
Fri May 30 18:36:34 CEST 2008


1. But then php will check if real "products" variable exists but not
tal-object's product property?
2. Why it is bad idea to have some logical operands in PHPTAL then?

Thanks for your answer on my problem.

Anton

On Fri, May 30, 2008 at 7:22 PM, Kornel Lesinski <kornel at aardvarkmedia.co.uk>
wrote:

> On Fri, 30 May 2008 17:04:47 +0100, Anton Andrievskij <x.meglio at gmail.com>
> 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"
>>
>
> TALES doesn't have any logical operators except alternative ("a | b |
> nothing" syntax).
>
> You can use:
>  php:isset(products) and !count(products)
>
> --
> regards, Kornel
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20080530/f1724f34/attachment.htm


More information about the PHPTAL mailing list