Nodes/ComfyUI-YogurtNodes/DictInvert (Yogurt Nodes)
ComfyUI Node

DictInvert (Yogurt Nodes)

Invert a dictionary (swap keys and values)

By yogurt7771·Created 2 years ago·Updated 2 months ago· 0
DictInvert (Yogurt Nodes)
  • dict_data
  • inverted_dict
handle_duplicatesfalse
CategoryYogurtNodes/Logic

Inputs (2)

NameTypeDefaultDescription
dict_data*Dictionary to invert
handle_duplicatesoptBOOLEANfalseIf True, duplicate values become lists of keys

Outputs (1)

NameTypeDescription
inverted_dict*