size
Returns the size of a string or an array.
The size of a string is the number of characters included in the string. The size of an array is the number of elements in the array.
variable | size() returns an integer.
Required params
variable array, string: The variable to get the size of.
Example
{{#var arr = "one,two,three" | split(",") /}}
{{ arr | size() }}
Was this article helpful to you?