Monarch 9460 Printer User Manual


 
5-32 Command Reference
DEC
Purpose Decrements numeric fields by one.
Syntax DEC
buffer-field
[ , [
invalid label
] [
, valid label
] ]
Process The DEC command decrements
buffer-field
. A translation error occurs if the script
decrements an alphanumeric field.
Buffer-field
is one of the following:
Buffer Field
Description
INPUT Input Buffer
Logical Field Name
(TEMP1)
Temporary Buffer
Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Logical Field Name
(Field1) [Index]
Array Buffer Field
Rule: You can decrement only numeric fields.
Optional Fields
Invalid
and
valid labels
are discussed in “Script Flow" at the beginning of this
chapter.
If you decrement an uninitialized field, control passes to
invalid label
.
Example
This example decrements TEMP_SKU and passes control to the next line.
DEC TEMP_SKU
See Also ADD
INC
SUB
DEC
MULTIPLY
DIVIDE