go command

The go command transfers program control to another Proc statement which starts with a statement label. The second form is an indirect transfer, according to the value of the label, as extracted from a parameter in the input buffer.

Syntax

go statement.label|aparam.num

Synonym(s)

g

Parameter(s)

statement.label Specifies the statement label to which control is transferred. statement labels must be numeric.
aparam.num   Specifies an indirect transfer, according to the value of the label, as extracted from a parameter in the currently active input buffer. The a is a literal.

Description

If the statement label is not unique, the go command goes to the first occurrence of the statement label as it scans from the top. If the label does not exist, the go command is not executed.

Example(s)

Transfers control to the Proc statement with label 99.

go 99

Transfers control to the Proc label that matches the value in the fourth position of the currently active input buffer.

go a4