size
Returns the size of a string or array.
The size of a string is the number of characters the string contains. The size of an array is the number of items in the array.
variable | size() returns [number]
Params
-
variablearray,string: Get the length of the variable.
Example
{{#var arr = "one,two,three" | split(",") /}}
{{ arr | size() }}
Was this article helpful to you?