Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
GOTO Keyword
◄Keywords► ◄Contents► ◄Index► ◄Back►
GOTO <label>
Description
A GOTO statement causes a jump to another part of the program. The
GOTO statement contains a label. (A label marks a statement.) It
can be an unsigned integer, such as 10, or an identifier, such as
'success.' The program jumps to the statement identified by the
label when it encounters a GOTO statement.
A GOTO and its label must be in the same scope. In other words, a
jump can be within but not outside a scope such as a procedure.
See also: Pascal Statement Hierarchy, LABEL, Simple statement,
Statement