ComfyUI Node

pop item

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 operation fails, no error is thrown, but the last argument is `False`, and the dictionary is returned intact.

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

Inputs (1)

NameTypeDefaultDescription
input_dictDICT

Outputs (4)

NameTypeDescription
dictDICT
keySTRING
value*
successBOOLEAN