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.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
pop
  • list
  • list
  • item
index-1
CategoryBasic/Data List

Inputs (2)

NameTypeDefaultDescription
list*
indexoptINT-1

Outputs (2)

NameTypeDescription
list*
item*