Syntax tags help you control how your Liquid code is processed and displayed in templates.

comment

Allows you to add comments that aren’t rendered in the output.
{% comment %}
  This is a comment that won't be rendered.
{% endcomment %}
This is visible.
{% comment %}
  This is a comment that won't appear in the output.
{% endcomment %}
This is also visible.
This is visible.
This is also visible.

raw

Temporarily disables tag processing, allowing Liquid syntax to be output as text.
{% raw %}
  Liquid tags inside here won't be processed.
{% endraw %}
{% raw %}
  In Liquid, you can use {% if condition %} to create conditionals.
{% endraw %}
In Liquid, you can use {% if condition %} to create conditionals.

liquid

Enables the use of Liquid code within tag markup.
{% liquid
  assign variable_name = value
  if condition
    echo 'Output if true'
  endif
%}
{% liquid
  assign name = "John"
  if name == "John"
    echo 'Hello, ' | append: name
  else
    echo 'Hello, stranger'
  endif
%}
Hello, John

echo

Outputs a string value. Similar to using {{ value }}, but can be used within {% liquid %} tags.
{% echo value %}
{% assign greeting = "Hello, world!" %}
{% echo greeting %}
Hello, world!