💠 Universal Switch

UniversalSwitch

Allows you to pick a specific Input or Output to control the flow of execution and transmit data variably based on your selections. Selection_In determines what Input slot will be transmitted and Selection_Out specifies what slot that data will be output to. All other Outputs from this node that are not used will return None. This node supports Lazy evaluation. Only the Inputs that are required based on the selections will be executed. Depending on the mode this node is set to, different actions will occur: • SWITCH: Transmits the Input chosen by Selection_In on the Output of Selection_Out. • CYCLE: Similar to SWITCH but all subsequent Outputs will be matched linearly after the chosen Input, wrapping around until all Inputs are matched. • PASSTHROUGH: All Inputs will be directly matched to all Outputs. (Selection_in and Selection_Out are ignored). • SORT: All Inputs will be sorted and matched to all Outputs. (Selection_in and Selection_Out are ignored). • REVERSE: All Inputs will be inversely matched to all Outputs. (Selection_in and Selection_Out are ignored). If Selection_In is set to 0 (for Modes that support it), the first Input that isn't None will be selected. Similarly, Selection_Out will pick the first Output slot that has a valid connection. With Selection_In set to -1, all Inputs will be packed into a List and output through the slot specified by Selection_Out. With Selection_Out set to -1, the Input chosen by Selection_In will be sent to ALL Outputs simultaneously. A Selection_In of -1 and a Selection_Out of -1 will match ALL Input Nodes and ALL Output nodes respectively. With both values set to -1, this is equivalent to PASSTHROUGH mode. If Validate_Typing is enabled, Outputs will match the type of their respective Inputs. (Currently this functionality is unimplemented). HOVER OVER THE INPUTS AND OUTPUTS FOR MORE INFO.

Pack: ControlFlowUtils

custom_nodes.ControlFlowUtils

Inputs (10)

NameTypeRequired
input1*required
modeCOMBOrequired
selection_inINTrequired
selection_outINTrequired
validate_typingBOOLEANrequired
input2*optional
input3*optional
input4*optional
input5*optional
input6*optional

Outputs (6)

NameType
**
**
**
**
**
**