ComfyUI Node
string → Dict🗂️
Add/update a string item to a Dict.
string → Dict🗂️
- dict
- dict
◄key—►
◄cleanup_keytrue►
◄value—►
◄cleanup_valuetrue►
Category🗂️ Dict Tools/Add
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| key | STRING | Key (name) of the item inserted into the dict. | |
| cleanup_key | BOOLEAN | true | Automatically remove leading/trailing spaces and extra newlines from the key. |
| value | STRING | The actual string to add into the Dict. | |
| cleanup_value | BOOLEAN | true | When enabled, each line in the value-string is individually stripped of any leading/trailing spaces. |
| dictopt | DICT | An (optional) Dictionary to work with. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| dict | DICT | — |