Skip to content

assign

Creates a new named variable.

Example:

liquid
{% assign my_variable = false %}
{% if my_variable != true %}
  This statement is valid.
{% endif %}

Output

html
This statement is valid.