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
| Name | Type | Description |
|---|---|---|
list | list | The list to read from. |
index | number | The zero-based position, counted from the end From picks. 0 is the first item, or the last with From set to End. |
Outputs
| Name | Type | Description |
|---|---|---|
item | any | The value at the index, or null if out of range. |
Configuration
- From:
Start(default) orEnd. 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.