MarkL MarkL - 1 month ago 6x
Twig Question

IF a == true OR b == true statement

I can't find a way to have TWIG interpret the following conditional statement:

{% if a == true or b == true %}
do stuff
{% endif %}

Am I missing something or it's not possible?


check this Twig Reference.

You can do it that simple:

{% if (a or b) %}
{% endif %}