← All exercises

Select Between

easy

A BOOL select input chooses between two inputs to route to the output.

What it teaches

Pick one of two inputs based on a switch. When the switch is off, the output follows input A; when it’s on, the output follows input B. The building block behind every manual/auto and remote/local selector.

Inputs and outputs

TagTypeDefaultDescription
In_SelectBOOLSelector switch; 0 = select A, 1 = select B
In_AREALFirst input value
In_BREALSecond input value
Out_SelectedREALRouted value

Required behavior

  • Out_Selected equals In_A when In_Select is 0.
  • Out_Selected equals In_B when In_Select is 1.