Nodes/🗂️ Dict Tools/🗂️Dict → string
ComfyUI Node

🗂️Dict → string

Extract a string item from a Dict.

By Lex-DRL·Created 4 months ago·Updated 4 months ago· 0
🗂️Dict → string
  • dict
  • value
◄key—►
â—„cleanup_keytrueâ–ş
â—„show_statusfalseâ–ş
Category🗂️ Dict Tools/Extract

Inputs (4)

NameTypeDefaultDescription
dictDICTA Dictionary to work with.
keySTRINGKey (unique name) of a string to extract from dictionary. If the element with such key isn't a string, it will be turned to one. If no such key exists in the dict, an empty string returned.
cleanup_keyBOOLEANtrueAutomatically remove leading/trailing spaces and extra newlines from the key.
show_statusBOOLEANfalseShow the extracted string on the node itself?

Outputs (1)

NameTypeDescription
valueSTRINGThe actual string item extracted from the Dict.