Navigation

The {%if%} tag evaluates a variable and if the result is true (boolean true, number unequal to zero, non empty string or a non empty list) then the contents of the if-block are output. When the if-variable test fails then the optional {%elif%} blocks are evaluated. When the if and all optional elif variable tests fail, the optional {%else%} block content is output.