arrayLength
Description
Returns the number of elements in an array.
Syntax
Like many functions in DataPrime, arrayLength
supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
array | array | true | The array whose length will be calculated |
Example
Use case: Determine the number of jobs waiting to be processed
Suppose you have a list of jobs in a queue. Consider the following input:
By applying arrayLength
, you can find out how many jobs are waiting.
Output
The result will include the count of array elements:
Theme
Light