List Add Item
Runs on: Shared (backend or chatbox overlay).
Adds a value to the end or start of a list and outputs the new list. The original list is not modified.
The item input accepts whatever type the connected list holds. A list of strings only accepts strings. The output list has the same type as the input.
Inputs
| Name | Type | Description |
|---|---|---|
list | list | The list to add to. |
item | any | The value to add. The accepted type is inferred from the list's inner type. |
Outputs
| Name | Type | Description |
|---|---|---|
result | list | The original items with the new item added. |
Configuration
- Position:
End(default) orStart.
Example
For a giveaway, a Chat Command trigger for !enter fires the flow. Wire the running entries list into list and the username into item, then store result back as the entries list.