Switch Library

Switch Actions

The Switches action library contains those actions that are required for creating switch statements in your game action code. In a number of situations you want to let your instances complete an action depending on a particular value, and while you can do this using a number of consecutive "if" statements, this can get messy when the possible choices gets above two or three. In these cases it is better to use the "switch" action. A switch action works as follows:

The Switches library has the following actions:

Switch Switch
case Case
default Default