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
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.
The item position in the list to extract. (Starting from 0)
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.
Ignore if the item is not found at the specified index.
The type of the item at the specified index. See all types.
["a", "b", "c"] // item type -> String
[1, 2, 3] // item type -> Number
Ignore if the item type does not match with the configured value type.
Input
A list of items. Accepts an Array or a JSON array.
Only present when the Dynamic index parameter is on. A Number giving
the 0-based position of the item to extract at runtime.
Output
The value extracted from the list at the specified index.