Skip to main content

List Get Item

Runs on: Shared (backend or chatbox overlay).

Outputs the item at a zero-based position in a list. A negative or out-of-bounds index outputs null. The output type follows the list's item type.

Inputs​

NameTypeDescription
listlistThe list to read from.
indexnumberThe zero-based position, counted from the end From picks. 0 is the first item, or the last with From set to End.

Outputs​

NameTypeDescription
itemanyThe value at the index, or null if out of range.

Configuration​

  • From: Start (default) or End. The end the index counts from.

Example​

Keep hype phrases as a list: ["Let's go!", "Hype!", "PogChamp!"]. On a big donation, use List Get Item with a random index (a Random Number node clamped to the list's length) to send one to chat.