Are you an LLM? You can read better optimized documentation at /themes/tags/assign.md for this page in Markdown format
assign
Creates a new named variable.
Example:
liquid
{% assign my_variable = false %}
{% if my_variable != true %}
This statement is valid.
{% endif %}1
2
3
4
2
3
4
Output
html
This statement is valid.1