pop

Basic data handling: DataListPop

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.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (2)

NameTypeRequired
list*required
indexINToptional

Outputs (2)

NameType
list*
item*