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.
pop
- input_dict
- default_value
- dict
- value
◄key►
CategoryBasic/DICT
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| input_dict | DICT | — | |
| key | STRING | — | |
| default_valueopt | * | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| dict | DICT | — |
| value | * | — |