Skip to content

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.

  1. Set Integer to Lives.
  2. Set Check to Equals.
  3. Add cases like 0 -> GameOver, 1 -> LastLife.
  4. Set Default Event to KeepPlaying.