Brother International TD-4420TN FBPL Command Reference - Page 155
GOTO, Description, Syntax, Example, See Also
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 155 highlights
10.23 GOTO Description Branch to a specified label. The label cannot exceed 8 characters in length. Syntax GOTO LABEL :LABEL Parameter LABEL Description Beginning of the point. The maximum length of the label is 8 characters. Example Sample code Result DOWNLOAD "GOTO1.BAS" SIZE 4,3 GAP 0,0 DIRECTION 1 CLS A=0 TOTAL=0 :START IF A
150
10.23 GOTO
Description
Branch to a specified label. The label cannot exceed 8 characters in length.
Syntax
GOTO LABEL
:LABEL
Parameter
Description
LABEL
Beginning of the point. The maximum length of the label is 8 characters.
Example
Sample code
DOWNLOAD "GOTO1.BAS"
SIZE 4,3
GAP 0,0
DIRECTION 1
CLS
A=0
TOTAL=0
:START
IF A<100 THEN
GOTO SUM
ELSE
GOTO PRTOUT
ENDIF
:SUM
A=A+1
TOTAL=TOTAL+A
GOTO START
:PRTOUT
B$="THE SUMMATION OF 1..100 IS
"+STR$(TOTAL)
TEXT 10,100, "3",0,1,1,B$
PRINT 1
END
EOP
Result
See Also
DOWNLOAD, EOP, END, GOSUB…RETURN