Examples of GO TO Statements

In the following example, control is transferred to the statement with the label LABEL1.

GO TO LABEL1

In the following example, control is transferred to the statement with the label LABEL2.

GO LABEL2

In the following example, control is transferred to the statement with the label designated by the subscripted switch label identifier SELECTIT[INDX].

GO TO SELECTIT[INDX]

In the following example, if K is equal to 1, control is transferred to the statement with the label designated by the subscripted switch label identifier SELECT[2]. Otherwise control is transferred to the statement with the label START.

GO TO IF K=1 THEN SELECT[2] ELSE START