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 is 1, with a valid range from 1 to 2. Set to 1 to select text1, or 2 to select text2.
  • 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 the input switch.

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.

Loading comments…