Multiple conditions in an if statement?
Twig doesn't accept || or &amp;&amp;... Try using or and and instead.



{% if foo == 'x' or foo == 'y' %}


Important to note, they must be lowercase.

You may also want to take a look at this question, which shows another way to write a similar condition:

{% if foo in ['x', 'y'] %}