Difference between revisions of "Demultiplex (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
m
(Update and add more info)
Line 8: Line 8:
 
| Input1Type = Object | Input1Name = DefaultValue
 
| Input1Type = Object | Input1Name = DefaultValue
 
| Input2Type = Int | Input2Name = Index
 
| Input2Type = Int | Input2Name = Index
| Output0Type = Object | Output0Name = [0]
+
| Output0Type = Object | Output0Name = ValueOutputs.[0]
| Output1Type = Object | Output1Name = [1]
+
| Output1Type = Object | Output1Name = ValueOutputs.[1]
| Output2Type = Object | Output2Name = [2]
+
| Output2Type = Object | Output2Name = ValueOutputs.[2]
 
| Output3Type = Int | Output3Name = OutputCount
 
| Output3Type = Int | Output3Name = OutputCount
 
}}
 
}}
  
 
<!--T:2-->
 
<!--T:2-->
The '''Demultiplex''' node will send Input A to Output <i>[[Datatype: Integer|Integer]]</i>, Every other output will get Input B. Uses [[0 Index]].
+
The '''Demultiplex''' node outputs the input <code>Value</code> at the output with corresponding to the input <code>Index</code>. Every other output is set to the input <code>DefaultValue</code>.
  
 
== Usage == <!--T:3-->
 
== Usage == <!--T:3-->
 +
The <code>Index</code> value corresponding to each <code>ValueOutput</code> is indicated in square brackets in the output's name.
 +
 +
 +
The <code>OutputCount</code> output provides the number of ValueOutputs the node currently supports.
 +
 +
 +
This node has a dummy unset datatype when spawned from the node browser. However, it will overload to the correct type when any value or reference typed input is connected. If the <code>Index</code> is less than 0 or greater than <code>OutputCount</code> -1 all outputs will have the <code>DefaultValue</code>.
 +
  
 
== Examples == <!--T:4-->
 
== Examples == <!--T:4-->
Line 23: Line 31:
 
== Node Menu == <!--T:5-->
 
== Node Menu == <!--T:5-->
 
</translate>
 
</translate>
[[Category:LogixStubs]]
+
 
[[Category:Generics{{#translation:}}]]
 
 
[[Category:LogiX{{#translation:}}|Demultiplex]]
 
[[Category:LogiX{{#translation:}}|Demultiplex]]
{{:NodeMenu{{#translation:}}}}
+
{{NodeMenu{{#translation:}}}}

Revision as of 20:33, 15 August 2021

Other languages:
English • ‎日本語
Demultiplex
'Demultiplex' LogiX node
Inputs
  Object Value
  Object DefaultValue
  Int Index
Outputs
  Object ValueOutputs.[0]
  Object ValueOutputs.[1]
  Object ValueOutputs.[2]
  Int OutputCount

The Demultiplex node outputs the input Value at the output with corresponding to the input Index. Every other output is set to the input DefaultValue.

Usage

The Index value corresponding to each ValueOutput is indicated in square brackets in the output's name.


The OutputCount output provides the number of ValueOutputs the node currently supports.


This node has a dummy unset datatype when spawned from the node browser. However, it will overload to the correct type when any value or reference typed input is connected. If the Index is less than 0 or greater than OutputCount -1 all outputs will have the DefaultValue.


Examples

Node Menu

Template:NodeMenu