Add - Monarch 9460 Programmer's Manual

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

Advertisement

A D D
Purpose
Adds the numeric values of two fields.
Syntax

ADD

Process
The ADD command sums
buffer-field2
The
Rules:
Both fields must be numeric.
The DEFINE command defines the index.
Invalid
Optional Fields
chapter.
Example 1
This example adds the contents of WHOLESALE to TEMP2. Control passes to the
next line.
ADD WHOLESALE,TEMP2
Example 2
This example assigns TEMP1 the sum of CONTROL and TEMP1. If TEMP1
overflows, control passes to the invalid label *ERROR2. If TEMP1 does not
overflow, control passes to the next line.
ADD CONTROL,TEMP1,*ERROR2
See Also
DEC
INC
SUB
MULTIPLY
DIVIDE
5-8 Command Reference
buffer-field1
,
buffer-field2
.
buffer-field
fields can be one of the following:
Buffer-field 1
2
and
INPUT
Logical Field Name (TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Logical Field Name (Field1) [Index]
Buffer-field1
only:
valid labels
and
[ , [
invalid label
buffer-field1
buffer-field2
and
Description
Input Buffer
Temporary Buffer
Field
Lookup Buffer Field
Printer Buffer Field
Array Buffer Field
Number prefixed by
the number sign (#)
are discussed in "Script Flow" at the beginning of this
] [ ,
valid label
] ]
and places the result into

Advertisement

Table of Contents
loading

Table of Contents