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.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
invert
  • input_dict
  • inverted_dict
  • success
CategoryBasic/DICT

Inputs (1)

NameTypeDefaultDescription
input_dictDICT

Outputs (2)

NameTypeDescription
inverted_dictDICT
successBOOLEAN