array
You cannot create an array directly in Liquid, however you can go around it by splitting a string.
{% assign listOfItems = "cup,pen,apple,book" | split: ',' %}
copy
You cannot create an array directly in Liquid, however you can go around it by splitting a string.
{% assign listOfItems = "cup,pen,apple,book" | split: ',' %}
copy