ComfyUI Node
invert
Creates a new dictionary with keys and values swapped. This node takes a dictionary as input and returns a new dictionary where the keys become values and values become keys. Note that values must be hashable to be used as keys in the new dictionary.
invert
- input_dict
- inverted_dict
- success
CategoryBasic/DICT
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input_dict | DICT | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| inverted_dict | DICT | — |
| success | BOOLEAN | — |