Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== GoTo statement ====== ==== Description ==== Branches unconditionally to any label within the BASIC+ program. ==== Syntax ==== **GoTo** //label// ==== Parameters ==== The GoTo statement has the following parameters. ^Parameter^Description^ |//label//|When BASIC+ encounters a GoTo statement, program control is unconditionally transferred to the designated label. The statements following that label are executed. The label can be numeric or alphanumeric.| Use the designated label anywhere in the program. Control may be transferred to statements either following or preceding the GoTo statement.\\ \\ The GoTo statement should be used very carefully to avoid confusion. For structured programming, BASIC+ provides other statements.\\ \\ {{{guides:programming:programmers_reference_manual:caution.gif?28x21}} Caution: Do not use GoTo to jump into a For...Next loop, a Loop...Repeat loop, or into the middle of an internal subroutine. ==== See Also ==== [[for|For...Next with While or Until]], [[gosub|GoSub]], [[loop|Loop...Repeat]], [[on...gosub|On...GoSub]], [[on...goto|On...GoTo]] ** ** guides/programming/programmers_reference_manual/goto.txt Last modified: 2024/10/14 18:18by 127.0.0.1