Glasnost

help

 

TAL Statements: condition

tal:condition="expression"

An element which contains a condition statement is included in the template only if the condition is met.

Example

<p tal:condition="not userToken">You are not logged in.</p>
<p tal:condition="userToken">You are logged in.</p>

Only one of these paragraphs is displayed, depending on whether the userToken variable is defined or not.

up