TSC AUTO ID Technology Co., Ltd. 135 Copyright 2013 All Rights Reserved.
IF…THEN…ELSE…ENDIF LOOP
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:
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