Tags

Tags create the logic and control flow for templates.


Tags are wrapped with {% and %}. The text inside those delimiters do not produce any visible output when the template is rendered. A simple example of using if condition in Liquid is shown below.

Input

{% assign value = true %}

{% if value %}
  Value is truthy
{% endif %}

Output

  Value is truthy