Switch 2-to-1

Classification Images
Name:
Switch 2-to-1

Symbol:
COM21
Appearance:  

Appearance.
Group:
Switches

CannyLab version:
from 0.6b
Icon:

Icon.
Inputs
Input Value
Input 0: Integer
Input 1: Integer
Output: Integer
Outputs
Output Value
Output: Integer

General description

Sets the output, determined by “Index” value, a value equal to the “Input” value, the rest of the output is set to zero.

Features

If the input “Index” exceeds the number of available outputs, all of the output values sets to a zero.

Examples

Example 1:

Example 1.

Example 2:

Example 1.

SEE ALSO