Skip to main content

List Get Item

Runs on: Shared — pure logic, runs on the Streamerly backend or inside a chatbox overlay.

The List Get Item node reads a single value out of a list by its position. You provide the list and a zero-based index number, and the node outputs whatever is stored at that position. If the index is out of bounds, the output will be null.

The output type is automatically inferred from the list's inner type — connecting a list of strings produces a string output, a list of numbers produces a number, and so on.

Inputs

NameTypeDescription
listlistThe list to read from.
indexnumberThe zero-based position to retrieve. 0 is the first item, 1 is the second, and so on.

Outputs

NameTypeDescription
itemanyThe value at the given index, or null if the index is out of range. The type is inferred from the list.

Example

You keep a rotation of hype phrases as a list: ["Let's go!", "Hype!", "PogChamp!"]. Each time a big donation lands, use List Get Item with a random index (generated by a Random Number node clamped to the list's length) to pluck one phrase out and send it to chat. This gives variety without managing separate variables for each message.