basic.go.to

Statement/BASIC Program, Releases:

Transfers execution to statement label.

Syntax

goto statement.label{:} go{ }{to} statement.label{:}

Description

transfers control to the location in the Pick/BASIC program that begins with the given statement label.

On statement labels beginning with a non-numeric value, the colon following the 'statement.label' is optional in the 'goto', but is required following the actual statement label.

Example

goto 99
go to error
if ans='y' then go begin

See Also

Command Name Type Description
basic.statement.labels Definition used as the destination of a 'goto' or 'gosub' statement.
basic.on.goto Statement Calculated goto.
proc.go Command Goto statement label.
branching Definition

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.