Monarch 9460 Programmer's Manual page 99

Adk printer
Hide thumbs Also See for 9460:
Table of Contents

Advertisement

S U B
Purpose
Subtracts the contents of one field from the contents of another.
Syntax
SUB
Process
The SUB command subtracts the contents of
buffer-field2
The
Rule:
Only numeric fields are allowed.
Invalid
Optional Fields
chapter. The exception is as follows:
buffer-field2
If
label.
Example
This example subtracts the contents of CONTROL_ID from TEMP1. Then, control
passes to the next line.
SUB CONTROL_ID,TEMP1
See Also
ADD
DEC
INC
MULTIPLY
DIVIDE
buffer-field1
,
buffer-field2
, inserting the result into
buffer-field
fields can be one the following:
Buffer-field1
2
and
INPUT
Logical Field Name
(TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Logical Field Name
(Field1) [Index]
Buffer-field1
only:
Number
valid labels
and
becomes negative and
[
,
[
invalid label
buffer-field2
Description
Input Buffer
Temporary Buffer
Field
Lookup Buffer Field
Printer Buffer Field
Array Buffer Field
Number prefixed by a
number sign (#)
are discussed in "Script Flow" at the beginning of this
invalid label
] [
, valid label
] ]
buffer-field1
from the contents of
.
is defined, control passes to that
Command Reference 5-77

Advertisement

Table of Contents
loading

Table of Contents