size - Liquid Filter Reference - 0.11.4

Filter Name size
Group Arrays
Version 0.11.4

Description

Returns the number of characters in a string or the number of items in an array.

Examples

{{ "Mary had a little lamb." | size }}
23
{% assign an_array = "earth, water, air, fire" | split: ", " %}

{{ an_array | size }}
4

Back to Filter List

Back to Liquid Reference for 0.11.4

 

 
Back to Documentation