Liquid
{% if true or false and false %}
This is true
{% else %}
This is false
{% endif %}
Output
This is true
When using a mix of “and” and “or” operators, the “and” ones are evaluated first, then the “or”. Using parenthesis for things to be evaluated in a certain order will not work, Liquid does not handle parenthesis.
{% if true or false and false %}
This is true
{% else %}
This is false
{% endif %}