Nodes > Math > Relational > Switch

Returns a Case value based on the passed in Switch index. For example, a Switch value of 1 results in Value for Case 1 being returned. If the Switch value does not match any active Case index, the Default value is returned.
Inputs
| Name | Type | Description |
|---|---|---|
| Switch | float | Index of the Case value to use |
| Value ( Switch == 0 ) | float | Value used when Switch is 0 |
| Value ( Switch == 1 ) | float | Value used when Switch is 1 |
| Value ( Switch == 2 ) | float | Value used when Switch is 2 |
| Default | float | Value used when Switch does not match any active Case |
Outputs
| Name | Type | Description |
|---|---|---|
| Result | float | Case Value based on Switch |
Properties
| Name | Type | Description |
|---|---|---|
| Count | dropdown | Number of cases to expose |
| Title | string | Label for Case 0 |
| Title | string | Label for Case 1 |
| Title | string | Label for Case 2 |
Was this page helpful?