Download AMOS 4.5 Sys Cmd Ref Man

Transcript
goto
FUNCTION:
ALLows transfer of controL within a command fiLe.
HINTS/RESTRICTIONS:
in combination with the LOOKUP and EXIT command fiLe commands,
GOTO aLLows you to set up conditionaL transfers within a command fiLe
Used
based
whether or not a specified fite exists.
on
EXIT reference sheets.)
You may
Command
use
onLy
information
on
FiLe 5
Information
GOTO
branching
and
DO
(See the LOOKUP and
within a command or DO fiLe.
For more
within a command file, see New Features of
FiLes,
(DwM—0U100—63),
in the
"User's
section ot the AM—100 documentation packet.
must precede the
LabeLs they branch to—— that
statements may only transfer forward in the command fiLe.
GOTOs
is,
GOTO
FORMAT:
GOTO Argument{;comment}
where Argument is the name of the Label that seLects the portion of the
command fiLe you want to branch to. The optional comment must begin
directLy after the Argument. (That is, there must be no space between
the end of the Argument and the semicolon that begins the comment.)
The Argument
must not end with trailing bLanks—— arguments must end
either with a RETURN or a semicoLon (which designates the start of a
comment).
The
LabeL
referenced by Argument must exist in a Later portion of the
The LabeL uses this format:
command fiLe.
LABEL
or:
;LABEL
The labeL must be the onLy thing on its command
Line.
If
the
LabeL
does not begin with a semicoLon, it is not a comment; therefore it must
be
an
executabLe command fiLe eLement (e.g., a program name or a
command fiLe specification). (NOTE: If the labeL is a comment, the
Argument on the GOTO command Line that referenced it must not begin
with a semicoLon, even though the LabeL does.)
(1 May 1980)