GOTO

Top  Previous  Next

Action

Jump to the specified label.

 

 

Syntax

GOTO label

 

 

Remarks

Labels can be up to 32 characters long.

When you use duplicate labels, the compiler will give you a warning.

 

 

See also

GOSUB

 

 

Example

Dim A As Byte

 

Start:                                   'a label must end with a colon

A = A + 1                                 'increment a

If A < 10 Then                           'is it less than 10?

Goto Start                             'do it again

End If                                   'close IF

Print " Ready"                           'that is it