assign a new variable
assign a new variable
Section titled βassign a new variableβ- Use the Assign keyword to set a value for a variable.
Example below assigns the variable positiveVal the absolute value of -42, which is 42:
{% raw %}
{% assign positiveVal = -42 | abs %}{% endraw %}