Tags

Tags create the logic and control flow for templates. The curly brace percentage delimiters {% and %} and the text that they surround do not produce any visible output when the template is rendered. This lets you assign variables and create conditions or loops without showing any of the Liquid logic on the page.

Input

{% if someVal %}
  Hello {{ someVal }}!
{% endif %}

Output

  Hello Value of someVal!

Tags can be categorized into various types:

You can read more about each type of tag in their respective sections.

Last updated