Liquid Filter Reference for size - v0.9.5

Filter Name size
Group Arrays
Version 0.9.5

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.9.5

 

 
Back to Documentation