The LogicalSwitch switches, depending on the Boolean inPort2 connector (the middle connector), between the two possible input signals inPort1 (upper connector) and inPort3 (lower connector).
If inPort2 is true, outPort is set equal to inPort1, else it is set equal to inPort2.