1. Home
  2. Liquid
  3. Assign

Assign data to a variable.

#liquid#variable
 {% assign myVar = 'Say hello' %}

 {{ myVar }}
copy
Full Liquid cheatsheet