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