Home
Products
Community
Manuals
Contact
Login or Signup

BlitzPlus Docs -> 2D - Category -> Basic -> Goto

Goto label

Parameters:

label = any valid exisiting label

Description:

This branches the flow of the program to a designated label. With the use of Functions inside of Blitz, it isn't very practical to use Gotos, but you may still find it useful. If you require the need to return execution back to the calling statement, you may use Gosub instead. See the example.

Example:

Print "The program starts ..."
Goto label1
Print "This line never gets printed .."
End

.label1
Print "We just jumped here!"

; wait for ESC key before ending
While Not KeyHit(1) 
Wend
 

Comments

None.

BlitzPlus Manual Forum

Blitz3D Equivalent Command