JUMP_ON

Usage:
JUMP_ON <Variable> <label 1> [label 2] [label 3] etc...

Description:
The JUMP_ON command will test the value in the variable and jumps to the corresponding label. When the variable is 1, it jumps to <label 1>, when the variable is 2, it jumps to <label 2>, and so forth.

Details:
<Variable> can only be "MENU" currently. This variable is set by the SHOW_MENU or SHOW_MENU_LDF commands. Once a menu selection has been made, the JUMP_ON MENU command will test the result, and jump to the corresponding label.

<label 1> and the other [label X] are the labels to jump to depending on the option chosen in the menu.

It will fail to jump if there aren't enough labels, or the variable is zero (which happens when the menu could not be shown, e.g. the game is multiplayer).

See Also
The SHOW_MENU page has a complete example of using JUMP_ON with menus.