Remove item
Remove the item at a position, or every item equal to a value.
Command in the List toolkit · id ooa.list/remove_item · 4 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| List | List | Yes | Source list. | |
| Position | Number | No | Position to remove. | |
| Value | Any | No | Remove every item equal to this value. | |
| All occurrences | Boolean | No | true | With a value: remove every equal item; when off, only the first. |
Outputs
| Output | Type | What it is |
|---|---|---|
| list | List | Updated list. |
| removed | Any | The removed item (by position), or a list of the removed items (by value). |
| count | Number | Number of items removed. |