CHOICE

The CHOICE function chooses which input to direct as output.

Input1 specifies the index of the input stream to be output. The Base property sets Input2's base index value. Each input after Input2 is indexed from Input2's base index value.

For example, if Base is set to 1, Input2's base index value is set to 1, Input3's index value is 2, Input4's index value is 3, and so on. Then, if Input1 is 1, Input2 is directed to the output. If Input1 is 2, then Input3 is directed to the output.

Input

Number of Connections: Min: 1/Max:Infinite
InputData TypeDescription
Input1IntegerChoice selection data.
InputNAllData.

Output

OutputData TypeDescription
Output1AllThe chosen input stream is copied to the output stream.

Property

NameProperty TypeDescription
BaseIntegerSpecifies the base index value by which Input2 is referred. All inputs after Input2 are indexed from the Base value. For example, if the Base is 1, Input2's index value is 1, Input3's index value is 2, Input4's index value is 3, and so on. If the Base is 0, Input2's index value is 0, Input3's index value is 1, Input4's index value is 2, and so on.

Topic


Example

PropertyOutput
Input12Base1data2
Input2data1
Input3data2
Input4data3

PropertyOutput
Input10Base0a
Input2a
Input3b
Input4c

PropertyOutput
Input11Base0b
Input2a
Input3b
Input4c

PropertyOutput
Input18Base7b
Input2a
Input3b
Input4c