ComfyUI Node
format_map
Formats a string using values from a dictionary. This node replaces placeholders in the input string with values from a dictionary. It uses the same placeholder syntax as the format() method, but takes the values from a dictionary mapping keys to values. For example, the string "Hello, {name}" with a dictionary {"name": "World"} would produce "Hello, World".
format_map
- mapping
- STRING
◄templateHello, {key}►
CategoryBasic/STRING
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| template | STRING | Hello, {key} | — |
| mapping | DICT | [object Object] | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |