pop item

Basic data handling: DictPopItem

Removes and returns an arbitrary key-value pair from a dictionary. This node takes a dictionary as input, removes an arbitrary key-value pair, and returns the modified dictionary along with the removed key and value. If the dictionary is empty, returns an error.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (1)

NameTypeRequired
input_dictDICTrequired

Outputs (4)

NameType
dictDICT
keySTRING
value*
successBOOLEAN