1. Home
  2. Liquid
  3. Assign
#liquid#variable

Assign data to a variable.

 {% assign myVar = 'Say hello' %}

 {{ myVar }}
copy
Full Liquid cheatsheet
Sitemap Git repository