[ZPT] multiple expressions in tal:condition?
Dieter Maurer
dieter@handshake.de
Fri, 22 Nov 2002 20:01:15 +0100
Jeff Kowalczyk writes:
> I need to test multiple conditions in a tal:condition statement, such as this row
> controlling rendering of a formulator form.
>
> Within:
> <span tal:repeat="repeatfield repeatform/get_fields" tal:omit-tag="">
> neither
> <tr tal:condition="repeatfield/required; not:repeatfield/hidden">
You can do the following:
<tr tal:define="cond1 ...; cond2 ....; cond3 ...;"
tal:condition="python: cond1 and cond2 and cond3 ..."> ... </tr>
You can also use "or" when you like.
Dieter