Switch

Description

This node returns the first input if the condition was True and the second input if the condition was False.

../../../_images/switch_node.png

Inputs

  • Condition - A boolean that defines the output.
  • If True - The value that should be the output if the condition is True.
  • If False - The value that should be the output if the condition is False.

Outputs

  • Output - The first value if True and the second value if False.
  • Other - The first value if False and the second value if True.

Advanced Node Settings

  • Change Type - Change the input type to other data type.

Note

The type of the node changes automatically when you input another data type.

Examples of Usage

../../../_images/switch_node_example.gif