- ⌂ Variables
- Directives
#COUNT
Return the number of items in an array or collection.
Prototype
#COUNT($collection)
Parameters
- collection - A variable containing an array or collection.
Related
#SIZE returns the number of bytes in a string or blob variable, but also returns the number of items in a collection for backward compatibility.
Example
#CQL($Contacts,"FROM Contacts")
There are #COUNT($Contacts) contacts.
Result
There are 12 contacts.