pop

Basic data handling: DictPop

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.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (3)

NameTypeRequired
input_dictDICTrequired
keySTRINGrequired
default_value*optional

Outputs (2)

NameType
dictDICT
value*