ComfyUI Node
pop
Removes and returns an item at a specified position in a list. This node takes a list and an index as inputs, then returns both the new list with the item removed and the removed item. If no index is specified, removes and returns the last item. When the list is empty, the item is None.
pop
- list
- list
- item
◄index-1►
CategoryBasic/Data List
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| list | * | — | |
| indexopt | INT | -1 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| list | * | — |
| item | * | — |