Liquid sandbox

Table of contents

Logic

Available resource

RTE and text input

Mixing “and” and “or” in conditions

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.

Liquid


{% if true or false and false %}
  This is true
{% else %}
  This is false
{% endif %}


Output


This is true