Nodes/Gprompts/String Formatter
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.

By GadzoinksOfficial·Created about a year ago·Updated 2 months ago· 2
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)

NameTypeDefaultDescription
format_stringSTRINGThe prompt is $a, the seed is $b, width is $c, height is $d. Generated at $datetime on $hostname, Operating system $osTemplate 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)

NameTypeDescription
formatted_stringSTRING