Previous Topic: Function Call StatementsNext Topic: Repetitive Statements


GOTO Statements

You can use the GOTO statement to transfer the program execution from one point in a program to another. The name of the label where the processing is to continue must follow the statement.

You cannot use the GOTO statement to jump into a loop (FOR, WHILE, REPEAT), function block, or IF (ELSE) block from outside.

Example:

GOTO MyLabel

More information:

FOR..NEXT..STEP Statements

REPEAT..UNTIL Statements

WHILE..WEND Statements