IF a == true OR b == true statement

Solution 1:

check this Twig Reference.

You can do it that simple:

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

Solution 2:

Comparison expressions should each be in their own brackets:

{% if (a == 'foo') or (b == 'bar') %}
    ...
{% endif %}

Alternative if you are inspecting a single variable and a number of possible values:

{% if a in ['foo', 'bar', 'qux'] %}
    ...
{% endif %}