Assigning Variables

Modified on Sun, 9 Mar at 4:22 PM

You can define your own variables using Liquid and assign desired values to them. There are no data types in place for you to worry about. These can be used to provide simple, readable names that can be easily comprehended when come across later.
Example:

{% assign helpdesk = 'Freshdesk' %}

{{ helpdesk }}


The statement above performs a straightforward assignment that displays “Freshdesk”. Yes - that’s about as creative as we’re willing to get on this one. You can also assign variables to be boolean, to be used with conditional statements later.


Next: Cycles 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article