Index Array
What It Does
Extracts a single value from a list at a specified position (index). It allows you to retrieve individual elements from an array by their numerical position.
Inputs
array
The list to extract the value from
List
Yes
index
The position to extract (starts at 0)
Number
No
Outputs
value
The item found at that position
Any

How to Use It
Drag the Index Array node into your graph.
Connect an array (like
[Red, Green, Blue]
) to the "array" input.Set the "index" value (default is 0, which returns the first item).
The output will be the value at that position (e.g., with index 1, the output would be "Green").

Tips
Array indexes start at 0, so the first item is at index 0, the second at index 1, etc.
If you use a negative index, it counts backward from the end (-1 is the last item).
See Also
Array Find: For finding items by a specific condition rather than position.
Slice: For extracting a range of items from an array.
Use Cases
Color Palette Access: Extract a specific color from a palette array by its position.
Token Selection: Select a specific token from a standardized set based on importance level.
Sequential Processing: Access individual steps from a sequence of design values.
Last updated