condition: Conditionally insert or remove an element Syntax 'tal:condition' syntax:: argument ::= expression Description The 'tal:condition' statement includes the statement element in the template only if the condition is met, and omits it otherwise. If its expression evaluates to a *true* value, then normal processing of the element continues, otherwise the statement element is immediately removed from the template. For these purposes, the value *nothing* is false, and *default* has the same effect as returning a true value. *Note: Zope considers missing variables, None, zero, empty strings, and empty sequences false; all other values are true.* Examples Test a variable before inserting it (the first example tests for existence and truth, while the second only tests for existence)::

message goes here

message goes here

Test for alternate conditions::

Even

Odd