EXIT statement in ST

Syntax
EXIT;

Use the EXIT statement to terminate the iteration statement FOR, WHILE or REPEAT before the termination condition END_FOR, END_WHILE or END_REPEAT is satisfied.

If the EXIT statement is located within nested iterative statements, logi.CAD 3 exits the current iterative statement in which the EXIT statement is located. I.e., logi.CAD 3 continues the execution with the next statement after the termination condition of the current iterative statement.

An example with EXIT can be found under "CONTINUE statement in ST".