EasyManua.ls Logo

Bematech LB-1000 - Page 108

Bematech LB-1000
172 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
D!. "D $% D " $
Description
Use IF…THEN block to execute one or more statements conditionally. Either a single-line syntax or
multiple-line “block” syntax can be used:
MODEL
Support
single
-
line form
multiple
-
line form
LB
-
1000
Syntax
IF condition THEN statement
Note the single-line form of IF …THEN does not use an ENDIF statement.
Or
IF condition THEN (TSPL2 printers only)
Statements
ENDIF
Or
IF condition THEN (TSPL2 printers only)
Statements
ELSE
Statements
ENDIF
Or
IF condition 1 THEN (TSPL2 printers only)
Statement block 1
ELSEIF condition 2 THEN
Statement block 2
ELSEIF condition n THEN
Statement block n
ENDIF
The syntax of IF…THEN…ELSE requires that the command be typed in one single line in
less than 255 characters.
Parameter Description
condition Available relational operator: <, >, =, <=, >=
statement Only one statement is available in
Example
DOWNLOAD "DEMO.BAS"
SIZE 3,3

Other manuals for Bematech LB-1000