|
This expression is simple and very useful. It can be used to jump forward during execution time, perhaps when a certain condition happens
The syntax is shown below:
Goto Label
Where Label is like a bookmark placed in a particular position of the program, specified as follows:
Label:
Actually simply a string followed by colon. The colon, is actually what identify the fact that the word is a label.
Let's make a complete example:
... ... If (A> 1) Then 'If A is greater than 1 then jump to Label 'without executing the instructions which follow the IF line. Goto Jump1 EndIf A = A + 1 S = "My String" ... ... 'This is a label Jump1:
A = 2 B = B + 1 C = B + A ... ...
|