Please enable JavaScript to view this site.

A-Shell Reference

The EXIT statement may be used within a control structure (For ... Next, Do/While/Until, Switch) to exit the structure, proceeding to the next statement following the end of the structure. For example:

DO WHILE A < B

    ...

    IF TIME > 82800 EXIT    ! exit loop after 11 PM

    ...

LOOP