Liqiud basics
Modules
API
Mailer
Tags
On this page
Overview
Liquid tags are the programming logic that tells templates what to do. Tags are always wrapped in {% %}
Operators
Liquid includes many logical and comparison operators. You can use multiple operators in a tag.
| Name | Description |
| == | Equals |
| != | Does not equal |
| > | Greater than |
| < | Less than |
| >= | Greater than or equal to |
| <= | Less than or equal to |
| or | Logical or |
| and | Logcial and |
| contains | Checks for the presence inside a string (only works for strings). |
In tags with more than one and or or operator, operators are checked in order from right to left.
Comment code
Allows you to leave un-rendered code. Any text within the opening and closing comment blocks will not be printed or executed.
Anything you put between {% comment %} and {% endcomment %} tags is turned into a comment.Anything you put between tags is turned into a comment.Updated: 2020-05-27