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.
RealityV15.1Online Documentation (MoTW) Revision 7
GOTO Statement (DataBasic) (m618703+goto_s.htm)
Unconditionally transfers program control to another statement within the DataBasic program.
GO{TO} statement-label
statement-label is the label of the statement where control is to be transferred.
Control is transferred to the statement with the specified statement-label.
If statement-label does not exist, an error is printed at compile time.
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.