ComfyUI Node
String Switch (Arctenox's Essentials)
Toggle between two STRING values. Outputs: • selected – the active string (A or B depending on toggle) • discarded – the inactive string (useful for logging/debugging) Use Cases: • Swap between two prompt variants without rewiring • Toggle a LoRA list on/off by switching between the list and "" • A/B compare different model names fed into Save Image With Metadata
String Switch (Arctenox's Essentials)
- selected
- discarded
◄use_string_atrue►
◄string_a►
◄string_b►
CategoryArctenox Essentials/Text
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| use_string_a | BOOLEAN | true | When ON, outputs string_a. When OFF, outputs string_b. |
| string_a | STRING | Output when toggle is ON (String A) | |
| string_b | STRING | Output when toggle is OFF (String B) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| selected | STRING | — |
| discarded | STRING | — |