Skip to content

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

NameDescriptionTypeRequired
arrayThe list to extract the value fromListYes
indexThe position to extract (starts at 0)NumberNo

Outputs

NameDescriptionType
valueThe item found at that positionAny

Index Array Example

How to Use It

  1. Drag the Index Array node into your graph.
  2. Connect an array (like [Red, Green, Blue]) to the "array" input.
  3. Set the "index" value (default is 0, which returns the first item).
  4. 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.