Operators, in computer programing, are symbols that usually represent an action or process. An Operator is capable of manipulating a certain value or operand.
Within REACH, liquid has access to all of the logical and comparison operators. These can be used in tags such as: if and unless.
Example: To preform an action when the Project Permalink equals ( == ) ‘my-project’:
{% if project.permalink == "my-project" %} <!-- preform an action --> {% endif %}
Basic Operators
== | equals |
!= | does not equal |
> | greater than |
< | less than |
>= | greater than or equal to |
<= | less than or equal to |
or | condition A or condition B |
and | condition A and condition B |
For additional assistance with this, please contact our Support team.
Let’s Get Social