<ADD> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
<ADD>
Syntax
<ADD {var1} {var2} >
where:
var1 numeric value in the range -32768 to 32767
var2 numeric value in the range -32768 to 32767
Description
<ADD> returns the sum of var1 and var2. Values outside the accepted
range can be stored in variables but they will be treated as unquoted
strings and are invalid for use in arithmetic expressions. If the result
of the addition would fall outside the allowed range an error condition
will result and HP Desk will print an error message.
See also: <MULTIPLY>, <NUMERIC>, <SUBTRACT>.
Example
&SAVE count <ADD <VAR count> 1>
This increases the value stored in the variable count by 1.
MPE/iX 5.0 Documentation