Nodes/ComfyUI-GeN13/Text Switch (GeN13)
ComfyUI Node

Text Switch (GeN13)

Type text directly into the boxes and output the selected one. Chain any number of nodes side by side: numbering continues from the previous node, and the first node controls the chain.

By heigen13·Created 3 days ago·Updated about 21 hours ago· 1
Text Switch (GeN13)
  • chain
  • chain
  • STRING
  • #01
  • #02
  • #03
  • #04
  • #05
  • #06
  • #07
  • #08
  • #09
  • #10
  • #11
  • #12
  • #13
  • #14
  • #15
  • #16
  • #17
  • #18
  • #19
  • #20
  • #21
  • #22
  • #23
  • #24
  • #25
◄count2►
◄select#01►
◄text_01►
◄text_02►
◄text_03►
◄text_04►
◄text_05►
◄text_06►
◄text_07►
◄text_08►
◄text_09►
◄text_10►
◄text_11►
◄text_12►
◄text_13►
◄text_14►
◄text_15►
◄text_16►
◄text_17►
◄text_18►
◄text_19►
◄text_20►
◄text_21►
◄text_22►
◄text_23►
◄text_24►
◄text_25►
◄select_num—►
CategoryGeN13/text

Inputs (29)

NameTypeDefaultDescription
countINT21–25Box count: number of text boxes shown; the rest are hidden.
selectCOMBO#01Select: the box to output. In a chain, the first node controls it, and numbering continues from the previous node's last box.
text_01STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_02STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_03STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_04STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_05STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_06STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_07STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_08STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_09STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_10STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_11STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_12STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_13STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_14STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_15STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_16STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_17STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_18STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_19STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_20STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_21STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_22STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_23STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_24STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
text_25STRINGText: type here or connect an upstream string. A connected upstream runs only when this box is selected.
chainoptG13_SWITCHChain: connect the chain output of the previous Text Switch; numbering continues from its last box.
select_numoptINT1–9999Select input: an INT, such as from Counter or Trigger, sets the box number directly, starting at 1; overrides select.

Outputs (27)

NameTypeDescription
chainG13_SWITCHChain: connect to the chain input of the next Text Switch.
STRINGSTRINGText: the selected box; empty when the selected box is in a later node of the chain.
#01STRINGText: this box's content, regardless of select.
#02STRINGText: this box's content, regardless of select.
#03STRINGText: this box's content, regardless of select.
#04STRINGText: this box's content, regardless of select.
#05STRINGText: this box's content, regardless of select.
#06STRINGText: this box's content, regardless of select.
#07STRINGText: this box's content, regardless of select.
#08STRINGText: this box's content, regardless of select.
#09STRINGText: this box's content, regardless of select.
#10STRINGText: this box's content, regardless of select.
#11STRINGText: this box's content, regardless of select.
#12STRINGText: this box's content, regardless of select.
#13STRINGText: this box's content, regardless of select.
#14STRINGText: this box's content, regardless of select.
#15STRINGText: this box's content, regardless of select.
#16STRINGText: this box's content, regardless of select.
#17STRINGText: this box's content, regardless of select.
#18STRINGText: this box's content, regardless of select.
#19STRINGText: this box's content, regardless of select.
#20STRINGText: this box's content, regardless of select.
#21STRINGText: this box's content, regardless of select.
#22STRINGText: this box's content, regardless of select.
#23STRINGText: this box's content, regardless of select.
#24STRINGText: this box's content, regardless of select.
#25STRINGText: this box's content, regardless of select.