EXIT command

Top  Previous  Next

Returns control to the first statement following the loop. The loop is terminated prematurely.

Syntax

EXIT

Remarks

The EXIT command can be located anywhere inside a loop. When used inside nested loops, the command applies to the innermost looping statement only.

 

Execution control is returned to the statement following the loop block.

See also

FOR...ENDFOR Command

SCAN...ENDSCAN Command

DO WHILE...ENDDO Command