I've encountered lots of times the need to compare one or more pairs of
values so I used php: modifier, but let's say would be more professional
using some internal tal way instead of php native comparison way.

eg:

<div tal:condition="php: listing.status == 'ACTIVE' && listing.type ==
'PREMIER'">print some good content here</div>

it will be something more likely to use:

<div tal:equal="listing/status 'ACTIVE'; listing/type 'PREMIER'">print some
good content here</div>



Another question.
I use pipe (`|`) also in tal:condition to check if at least one of the
expressions is true, but what if we would have some way to check if all
conditional expressions are true?

Did I understood wrong some PHPTal principles having these requests?

Ciprian Voicu



-- 

 <http://www.autoportret.ro> Ciprian Voicu
Modernism.RO <http://www.modernism.ro>
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to