ON GOTO

ON GOTO

ON GOTO action


Function

The action implements a multiple branch.

Declaration

ON expression GOTO Label1 [,Label2, ... ,Label10]

Parameters

expression

in

Expression of Int type.

label1, label2, ..., label10

in

Labels. Maximum: 10.

Description

labelX - the label, to which the script jumps, where the value of the expression expression is X. The maximum number of labels is 10. For example, if the value of expression is 3, the script jumps to the label Label3. If the value of the expression expression is greater than the label number, the script interpreter ignores the action and continues executing the following action.


Related pages:

Script actions