size - Liquid Filter Reference - 0.10.11

Filter Name size
Group Arrays
Version 0.10.11

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

 

 
Back to Documentation