goto Statement

The goto statement transfers control to the location in the FlashBASIC or BASIC program that begins with the given statement label.

On statement labels beginning with a nonnumeric value, the : following the statement.label is optional in the goto, but is required following the actual statement label.

Syntax

goto statement.label{:}

go to statement.label{:}

Synonym(s)

go

Parameter(s)

statement.label

Specifies the location in a FlashBASIC or BASIC program to which control is transferred.

Example(s)

goto 99

go to error

if ans=’y’ then go begin

See Also

Branching, go Command, on...goto Statement, Statement Labels