EasyManua.ls Logo

GPRINTER GP-2120T - Page 58

GPRINTER GP-2120T
81 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...
THERMAL BARCODE PRINTER SERIES 54
54. IFTHENELSEENDIF LOOP
Description
Use IFTHEN block to execute one or more statements conditionally.
You can use either a single-line syntax or multiple-line block syntax:
Syntax
IF condition THEN statement
Notice that the single-line form of IF THEN does not use an ENDIF
statement.
Or
IF condition THEN
Statements
ENDIF
Or
IF condition THEN
Statements
ELSE
Statements
ENDIF
Or
IF condition 1 THEN
Statement block 1
ELSEIF condition 2 THEN
Statement block 2
...
ELSEIF condition n THEN
Statement block n
ENDIF
The syntax of IFTHENELSE 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

Other manuals for GPRINTER GP-2120T

Related product manuals