size - Liquid Filter Reference - 1.0.0
Filter Name | size |
Group | Arrays |
Version | 1.0.0 |
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 Liquid Reference for 1.0.0
Back to Documentation