галька сценариев логическое выражение
{% if (3 is not even) and (2 is odd or 3 is even) %}
...
{% endif %}
Confused Centipede
{% if (3 is not even) and (2 is odd or 3 is even) %}
...
{% endif %}