ComfyUI Node
Text Substitution
Substitutes the placeholders in the text with the provided strings. The placeholders use the specified delimiter (default $) followed by str_1, str_2, etc. based on the number of connected inputs. The prefix and suffix are added to the final result.
Text Substitution
- strings
- result
◄text►
◄delimiter$►
◄prefix—►
◄suffix—►
CategorySage Utils/text/input
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | The template text containing placeholders. | |
| delimiter | STRING | $ | Delimiter used to mark placeholder variables. |
| strings | COMFY_AUTOGROW_V3 | Input value for strings. | |
| prefixopt | STRING | Text to prepend to the substituted result. | |
| suffixopt | STRING | Text to append to the substituted result. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | STRING | Output value for result. |