Integer Switch
The Integer Switch action sends events based on the value of an integer variable.
| Parameter | Description |
|---|---|
| Integer | The integer variable to check. |
| Check | The numeric comparison used for each case. The first matching case is used. |
| Cases | A list of integer cases and the event to send for the first case that passes the check. |
| Default Event | The event sent if no case matches. |
Example
Use this action for milestone or threshold routing.
- Set Integer to
Lives. - Set Check to
Equals. - Add cases like
0 -> GameOver,1 -> LastLife. - Set Default Event to
KeepPlaying.