HP 3000 Manuals

<SUBTRACT> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation


HP DeskManager Customization

<SUBTRACT> 

Syntax 

<SUBTRACT {var1} {var2} >

where:

 var1                 numeric value in the range -32768 to 32767
var2                  numeric value in the range -32768 to 32767

Description 

<SUBTRACT> returns the result of var2 subtracted from var1.  Note that
values outside this 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 subtraction would fall outside the
allowed range HP Desk will print an error message.

See also:  <ADD>, <ALLDIGITS>, <MULTIPLY>, <NUMERIC>.

Example 

     &FORWARD <SUBTRACT <VAR m> 2>

This will subtract 2 from the value held in m and then move forward that
number of lines.



MPE/iX 5.0 Documentation