ComfyUI Node
String Formatter
Node that builds strings by replacing $variables. Supports custom inputs a-h and system variables like $datetime, $hostname, $os, etc. Use with GPrompts Save Image to create notes, or anywhere else for creating dynamic filenames, prompts , etc.
String Formatter
- a
- b
- c
- d
- e
- f
- g
- h
- formatted_string
◄format_stringThe prompt is $a, the seed is $b, width is $c, height is $d. Generated at $datetime on $hostname, Operating system $os►
Categoryutils/text
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| format_string | STRING | The prompt is $a, the seed is $b, width is $c, height is $d. Generated at $datetime on $hostname, Operating system $os | Template string with $variables (e.g., $a, $datetime, $hostname). Use $a through $h for inputs. |
| aopt | * | Input A - any value (automatically converted to string) | |
| bopt | * | Input B - any value (automatically converted to string) | |
| copt | * | Input C - any value (automatically converted to string) | |
| dopt | * | Input D - any value (automatically converted to string) | |
| eopt | * | Input E - any value (automatically converted to string) | |
| fopt | * | Input F - any value (automatically converted to string) | |
| gopt | * | Input G - any value (automatically converted to string) | |
| hopt | * | Input H - any value (automatically converted to string) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| formatted_string | STRING | — |