1. Home
  2. Liquid
  3. Size

Count the number of characters in a string or length of an array. "." or "|" syntax can be used.

#liquid#string#array#filter
 {{ arrayOfItems.size  }}
 {% comment  %} or  {% endcomment  %}
// or
 {{  "How many characters?" | size }}
 {% comment  %} This will return 20  {% endcomment  %}
copy
Full Liquid cheatsheet
NordVPN NordVPN