[ZPT] Conditionals

Michael Bond mbond at the-forgotten.org
Tue Mar 23 11:42:34 EST 2004


Is it possible to combine various conditionals into 1 tal:condition 
expression?

If i wanted to do:

if (var1 == 'this' && var2 =='that')

Is it possible without using a series of <span>'s

I've tried the following, but the syntax is obviously not correct:

tal:condition="python:var1 == 'this' and python:var2 == 'that'"

Also, how complex can it be made?

if ((var1 == 'this' && var2 =='that') || var3 == 'another')

Any good references or documentation for this online?

Mike.




More information about the ZPT mailing list