count()
counts the elements in a list
syntax
count ( list: list ) : number
throws an error if the list parameter is not a list.
parameters
list | the list to count the items in |
return
return the number of items in the list
example
@list = [ 1, 2, 3 ]; count ( @list );
returns 3