ProtoFlux:Multiplex

From Resonite Wiki
Multiplex
Index
Output
Inputs
InputCount
+
-
Utility

The Multiplex node is a node that changes its output to a specific input based on its index.

The node can be used as a fixed-size* array in ProtoFlux or to iterate over multiple values or variables in a For Loop. The size of a multiplex can be near infinite, and can multiplex any Type.

If you are looking to switch between only 2 values or objects, consider using a Conditional instead.

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.