Switch
Last updated
Last updated
Switch compares whether or not the Value of a single Data Input is equal to any of multiple pre-defined Values, also known as Cases. Whichever Case is evaulated to be equal to the Input, will trigger the corresponding Output Pulse. If there are no matches found, the Default
Pulse will be executed.
While you should never have Cases of the same Value, be aware that equality is checked from top-to-bottom; meaning that if a match has been found, subsequent Cases won't be evaluated.
The Switch Node has no Attributes.
Attribute | Type | Description |
---|---|---|
| Drop-down | The type of data that will be plugged into the |
Attribute | Type | Description |
---|---|---|
| List | The pre-defined Cases to compare with |
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 Cases. |
Output | Type | Description |
---|---|---|
| Pulse | An Output Pulse for each pre-defined Case, whose execution is triggered if the corresponding Case is evaluated as being equal to |
Switch statement on Wikipedia.