EXIT statement in ST

Syntax
EXIT;

Use the EXIT statement to terminate the iteration statement FORWHILE or REPEAT before the termination condition END_FOREND_WHILE or END_REPEAT is satisfied.

If the EXIT statement is located within nested iterative statements, Neuron Power Engineer exits the current iterative statement in which the EXIT statement is located. I.e., Neuron Power Engineer 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".