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

string → Dict🗂️

Add/update a string item to a Dict.

By Lex-DRL·Created 4 months ago·Updated 4 months ago· 0
string → Dict🗂️
  • dict
  • dict
key
cleanup_keytrue
value
cleanup_valuetrue
Category🗂️ Dict Tools/Add

Inputs (5)

NameTypeDefaultDescription
keySTRINGKey (name) of the item inserted into the dict.
cleanup_keyBOOLEANtrueAutomatically remove leading/trailing spaces and extra newlines from the key.
valueSTRINGThe actual string to add into the Dict.
cleanup_valueBOOLEANtrueWhen enabled, each line in the value-string is individually stripped of any leading/trailing spaces.
dictoptDICTAn (optional) Dictionary to work with.

Outputs (1)

NameTypeDescription
dictDICT