TSC AUTO ID Technology Co., Ltd. 115 Copyright 2009 All Rights Reserved.
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
GAP 0.12,0
SPEED 4
DENSITY 8
DIRECTION 1
REFERENCE 0,0
OFFSET 0.00
SET CUTTER OFF
SET PEEL OFF
CLS
A=0
B=0
C=0
D=0
E=0
F=0
G=0
H=0