Brother International TD-4520TN FBPL Command Reference - Page 147
Relational operator <>, not equal, was supported.
![]() |
View all Brother International TD-4520TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 147 highlights
10.19 WHILE...WEND Description Execute a series of statements if a given condition is True. Nested loops are allowed (up to 39 nested loops) in the printer. Syntax WHILE condition [statement] WEND Parameter condition Statement Description Available relational operator *Relational operator , not equal, was supported. One or more statements executed while condition is True. Example Sample Code DOWNLOAD "TEST.BAS" I=0 TOTAL=0 WHILE I
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/147.png)
142
10.19 WHILE…WEND
Description
Execute a series of statements if a given condition is True. Nested loops are allowed (up to 39 nested loops)
in the printer.
Syntax
WHILE
condition
[
statement
]
WEND
Parameter
Description
condition
Available relational operator: <, >,
=
,
<=
,
>=
,
<>
*Relational operator <>, not equal, was supported.
Statement
One or more statements executed while condition is True.
Example
Sample Code
Result
DOWNLOAD "TEST.BAS"
I=0
TOTAL=0
WHILE I<100
I=I+1
TOTAL=TOTAL+I
WEND
SIZE 4,0.5
GAP 0,0
CLS
TEXT 10,10, "3",0,1,1, "1+2+3+ ... + 100 = "
+STR$(TOTAL)
PRINT 1
EOP
TEST
DOWNLOAD "TEST.BAS"
data$ =""
SIZE 4,0.3
GAP 0,0
DIRECTION 1
INPUT "Data: ",data$
WHILE data$ <> "Quit"
CLS
TEXT 10,10, "3",0,1,1, "Data: "+data$
PRINT 1
INPUT "Data: ",data$
WEND
CLS
TEXT 10,10, "3",0,1,1, "Quit BAS"
PRINT 1
EOP
TEST
12345
67890
quit
Quit