Switch
Overview
Switch takes an input value and triggers one of several output Pulses, based on whether or not the input matches a pre-defined value. These pre-defined values, referred to as cases in computer programming, can be defined as a list in the Cases
Attribute. Each value added to the Node also creates a corresponding output Pulse. If the value of the Input
Socket matches a value defined in the Cases
Attribute, its corresponding Pulse is triggered. If no match is found, then the Default
Pulse is triggered instead.
Attributes
Inputs
Attribute | Type | Description |
---|---|---|
| Drop-down | The type of data that will be plugged into the |
Outputs
Attribute | Type | Description |
---|---|---|
| Defined in the | The pre-defined values, which will be compared to the value of the |
Inputs
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard input Pulse, to trigger the execution of the Node. |
| Defined in the | The value to be compared with the list of pre-defined |
Outputs
Output | Type | Description |
---|---|---|
| Pulse | An Output Pulse for each pre-defined case, whose execution is triggered if the corresponding value is evaluated as being equal to |
External Links
Switch statement on Wikipedia.
Last updated