Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Overview

This node formats text using Python’s string format method. It works like a template where you define a text pattern with placeholders, and then provide values to fill those placeholders. It supports all of Python’s format options and features.

Inputs

ParameterData TypeRequiredRangeDescription
f_stringSTRINGYesN/AThe format string template with placeholders (default: {a}). Supports multiline input.
valuesSTRINGYesN/ADynamic input for providing values to fill placeholders in the format string. Multiple value inputs can be added as needed.
Note on values input: This input is dynamic and can be expanded to include multiple named values. Each value input is labeled with a letter (a, b, c, etc.) and corresponds to a placeholder in the format string (e.g., {a}, {b}, {c}). You can add or remove value inputs as needed.

Outputs

Output NameData TypeDescription
STRINGSTRINGThe formatted text string with all placeholders replaced by their corresponding values.

Source fingerprint (SHA-256): 72625287533829a8087687bb47f39bc265aced3d5f43066f615326d729725122