This documentation is out of date.
The new version of the documentation is here: https://cannylogic.com/docs |
Difference between revisions of "Switch 1-to-8"
From CANNY Wiki
[unchecked revision] | [unchecked revision] |
(Created page with " <div style="float:right;margin:5px;"> {|class="cannytable" width="350px" |- !colspan="2" style="background-color:#AFEEEE;"|Appearance |- |colspan="2" align="center" style="...") |
|||
Line 18: | Line 18: | ||
!colspan="2" style="background-color:#AFEEEE;"|Inputs | !colspan="2" style="background-color:#AFEEEE;"|Inputs | ||
|- | |- | ||
− | |style="padding-left:1em;"| | + | |style="padding-left:1em;"|Input: |
|style="padding-left:1em;"|[[CFD Language#Data|Integer]] | |style="padding-left:1em;"|[[CFD Language#Data|Integer]] | ||
|- | |- | ||
− | |style="padding-left:1em;"| | + | |style="padding-left:1em;"|Index: |
|style="padding-left:1em;"|[[CFD Language#Data|Integer]] | |style="padding-left:1em;"|[[CFD Language#Data|Integer]] | ||
|- | |- | ||
− | !colspan="2" style="background-color:#AFEEEE;"| | + | !colspan="2" style="background-color:#AFEEEE;"|Outputs |
|- | |- | ||
|style="padding-left:1em;"|Output 0...7: | |style="padding-left:1em;"|Output 0...7: |
Latest revision as of 09:48, 25 November 2015
Appearance | |
---|---|
Symbol | |
COM18 | |
Group | |
Switches | |
Inputs | |
Input: | Integer |
Index: | Integer |
Outputs | |
Output 0...7: | Integer |
Version CANNY Lab | |
from 0.6b |
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.