Comparison expressions must be in their brackets:
{% if (a == 'foo') or (b == 'bar') %} ... {% endif %}
Alternative if you are checking one variable and the number of possible values:
{% if a in ['foo', 'bar', 'qux'] %} ... {% endif %}
Tim 04 Sep '16 at 17:29 2016-09-04 17:29
source share