On <key> GoTo <label>
Note: Now Obsolete
On command will cause a jump to the specified <label>
if
the given <key> has been pressed.
Parameters
<label> Label to jump on.
Remarks
-
On command setting is automatically cleared when Wait command
times out or if any of the keys having an effect is pressed.
Example
On # GoTo EXIT_MENU
On 1 GoTo MENU_1
On 2 GoTo MENU_2
:TRYAGAIN
Play "Menu.wav"
Wait 5
GoTo TRYAGAIN
:MENU_1
Play "Menu1.wav"
…
…
:MENU_2
Play "Menu2.wav"
…
…
:EXIT_MENU
Hangup