ComfyUI Node

pop

Removes and returns a key-value pair from a dictionary. This node takes a dictionary and a key as inputs, removes the specified key from the dictionary, and returns both the modified dictionary and the value associated with the key. If the key is not found and a default value is provided, that default is returned. Otherwise, an error is raised.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
pop
  • input_dict
  • default_value
  • dict
  • value
key
CategoryBasic/DICT

Inputs (3)

NameTypeDefaultDescription
input_dictDICT
keySTRING
default_valueopt*

Outputs (2)

NameTypeDescription
dictDICT
value*