Commands > CMD and DO Files

GOTO and EXIT Statements

GOTO is similar to the BASIC GOTO statement, except that it can only jump forward in the CMD or DO file. The syntax of a label consists of a semicolon followed by the label name. (See the label “;DONE” in the sample MAIN.DO file above.)

EXIT causes an immediate exit to the A-Shell command prompt, even if you are currently nested multiple levels deep in a CMD or DO file.