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".

By StableLlama·Created about a year ago·Updated 25 days ago· 45
format_map
  • mapping
  • STRING
templateHello, {key}
CategoryBasic/STRING

Inputs (2)

NameTypeDefaultDescription
templateSTRINGHello, {key}
mappingDICT[object Object]

Outputs (1)

NameTypeDescription
STRINGSTRING