List Remove Item
Runs on: Shared (backend or chatbox overlay).
Removes the item at an index and outputs the new list. The original list is not modified, and later items shift down by one. A negative or out-of-range index leaves the list unchanged.
Pairs with List Get Item and List Find for drawing winners from a pool, working through a queue or letting a viewer opt out of a rotation.
Inputs
| Name | Type | Description |
|---|---|---|
list | list | The list to remove from. |
index | number | The zero-based position to remove, counted from the end From picks. 0 is the first item, or the last with From set to End. |
Outputs
| Name | Type | Description |
|---|---|---|
result | list | The list without that item, with the same type as the input. |
Configuration
- From:
Start(default) orEnd. The end the index counts from.
Example
To draw a giveaway winner, use List Get Item with a random index, announce the name, then wire the same index and the entries list into List Remove Item and store result back as the entries list. The same person can't win twice.