Array Length
Last updated
Last updated
Counts how many items are in a list and returns that number. It's perfect for determining the size of collections or arrays.
array
The list to count items in
List
Yes
length
The number of items in the list
Number
Drag the Array Length node into your graph.
Connect your list (like [Red, Green, Blue]
) to the "array" input.
The output will be the number of items in the list (e.g., 3).
An empty array will return 0.
This node only counts top-level items; it doesn't count elements in nested arrays.
Dynamic Sizing: Use the length to calculate scalable spacing based on the number of elements.
Limit Checking: Verify if a token collection has the expected number of items.
Conditional Logic: Create different behaviors based on how many items exist in a collection.
: For accessing specific items in a list by their position.