-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
States.ArrayLength
Description from https://states-language.net/#appendix-b
The States.ArrayLength intrinsic function returns the length of an array. It has one argument, the array to return the length of.
For example, given the following input array:
json{ "inputArray": [1,2,3,4,5,6,7,8,9] }
You can use States.ArrayLength to return the length of inputArray:
json"length.$": "States.ArrayLength($.inputArray)"
In this example, States.ArrayLength would return the following JSON object that represents the array length:
json{ "length": 9 }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels