Skip to main content

List: Select item from index

Node function to extract an item from a list at the specified position. The index can be static (configured in the form) or dynamic (read from an Index input connector at runtime).

Parameters

Dynamic index

Off by default. When on, the index is read at runtime from an extra required Index input connector (see Input below) instead of the static Index parameter — useful when an upstream node computes which position to fetch.

Index

The item position in the list to extract. (Starting from 0)

Example
list -> ["a", "b", "c"]
index 0 -> "a"
index 1 -> "b"
index 2 -> "c"

Hidden in the form when Dynamic index is on; it then only serves as a fallback when the Index input connector provides no value.

Skip if not found

Ignore if the item is not found at the specified index.

Value typerequired

The type of the item at the specified index. See all types.

Example
["a", "b", "c"] // item type -> String
[1, 2, 3] // item type -> Number
Skip on cast error

Ignore if the item type does not match with the configured value type.

Input

Array

required

A list of items. Accepts an Array or a JSON array.

Indexrequired

Only present when the Dynamic index parameter is on. A Number giving the 0-based position of the item to extract at runtime.

Output

Item value

The value extracted from the list at the specified index.