EasyUse/Logic/Switchgenerated
Text Switch(textSwitch)
The Text Switch node selects between two text strings based on an integer switch value.
text Switch
STRING
input
1
text1
STRING
text2
STRING
Easy Use
Description
The Text Switch node selects between two text strings based on an integer switch value. It is part of the EasyUse/Logic/Switch category and returns the chosen string.
Inputs
input(INT, required): Switch selector. Default is1, with a valid range from1to2. Set to1to selecttext1, or2to selecttext2.text1(STRING, optional): First text string to choose from.text2(STRING, optional): Second text string to choose from.
Outputs
STRING: The text value selected by theinputswitch.
Usage Notes
Use input as a simple selector: 1 returns text1, and 2 returns text2. The input range is limited to two values, so the node acts as a binary text switch.
Both text1 and text2 are optional string inputs, so they can be supplied dynamically or left empty. The selected string is passed through unchanged, making this node useful for routing between two text values in a logic workflow.
Comments
Sign in with GitHub to join the discussion.