← All exercises

Select Between

easy

Selects and routes one of two REAL inputs to the output based on a boolean selector switch.

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