ComfyUI Node
DictInvert (Yogurt Nodes)
Invert a dictionary (swap keys and values)
DictInvert (Yogurt Nodes)
- dict_data
- inverted_dict
◄handle_duplicatesfalse►
CategoryYogurtNodes/Logic
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| dict_data | * | Dictionary to invert | |
| handle_duplicatesopt | BOOLEAN | false | If True, duplicate values become lists of keys |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| inverted_dict | * | — |