ProtoFlux:Multiplex: Difference between revisions

From Resonite Wiki
Category
Updated descriptions.
 
Line 5: Line 5:
[
[
{"Name":"Index", "Type":"int"},
{"Name":"Index", "Type":"int"},
{"Name":"Inputs", "Type":"Dummy", "Multi": 6}
{"Name":"Inputs", "Type":"Dummy", "Multi": 2}
]
]
|Outputs=
|Outputs=
Line 17: Line 17:
|}}
|}}


The Multiplex ProtoFlux node can be used as a fixed-size* array in ProtoFlux Creations. It can be used to iterate over multiple values or variables in a [[ProtoFlux:For|For Loop]]. The size of a multiplexer can be near infinite, and can multiplex any type.
The <code>Multiplex</code> node can be used as a fixed-size* array in [[ProtoFlux]].  The size of a multiplex can be near infinite, and can multiplex any [[Type:Type|Type]].
 
{{Note|This node can be used to iterate over multiple [[Value Type|values]] or variables in a [[ProtoFlux:For|For Loop]].|information}}


== Inputs ==
== Inputs ==
Line 23: Line 25:
=== Index ([[Type:Int|int]]) ===
=== Index ([[Type:Int|int]]) ===


Will make Output (Generic) return the value of the Inputs (Generic) at the provided number position to this input.
Selects the input value for the output.


=== Inputs (Generic) ===
=== Inputs (Generic) ===
Line 33: Line 35:
=== Output (Generic) ===
=== Output (Generic) ===


Will return The Inputs (Generic) value at position Index ([[Type:Int|int]]).
Returns the selected value from the selected index.


=== InputCount ([[Type:Int|int]]) ===
=== InputCount ([[Type:Int|int]]) ===


The number of inputs in the fixed-size* array of items in Inputs (Generic).
The number of inputs in the fixed-size* array of items in Inputs.





Latest revision as of 08:52, 23 May 2024

Multiplex
Index
Output
Inputs
InputCount
+
-
Utility

The Multiplex node can be used as a fixed-size* array in ProtoFlux. The size of a multiplex can be near infinite, and can multiplex any Type.

This node can be used to iterate over multiple values or variables in a For Loop.

Inputs

Index (int)

Selects the input value for the output.

Inputs (Generic)

A fixed-size* array of items with a type that will always match Output's type.

Outputs

Output (Generic)

Returns the selected value from the selected index.

InputCount (int)

The number of inputs in the fixed-size* array of items in Inputs.


Examples


Footnotes

* It can be made bigger or smaller while editing the flux.