DataBasic Reference > Statements and Intrinsic Functions > G > GOTO Statement

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

GOTO Statement (DataBasic) (m618703+goto_s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

GOTO Statement

Unconditionally transfers program control to another statement within the DataBasic program.

Syntax

GO{TO} statement-label

Syntax Elements

statement-label is the label of the statement where control is to be transferred.

Operation

Control is transferred to the statement with the specified statement-label.

If statement-label does not exist, an error is printed at compile time.

See Also

GOSUB statement.

Example

100 A=0
.
.
.
* BRANCH TO STATEMENT 500
200 GOTO 500
.
.
.
500 A=B+C
D=100
.
.
.
* REPEAT PROGRAM
GO 100

Transfers control from the statement at label 200 to the statement at label 500. Execution continues sequentially until the GO 100 statement transfers control back to the statement at label 100.

RealityV15.0Comment on this topic