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/LIST

Inputs (2)

NameTypeDefaultDescription
listLIST
indexoptINT-1

Outputs (2)

NameTypeDescription
listLIST
item*