assign Tag

Creates a new variable.

Description

Creates a new variable.

Example string (surrounded by single or double quotes):

{% assign name = 'Ringo' %}

Example numbers:

      {% assign num_employees = 12 %}
      {% assign pi = 3.14 %}
      

Example boolean (making sure to no surround the boolean value with quotes):

{% assign success = true %}

Parameters

None.