Subtract

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, and Windows

SecureLogin version:

3

Type:

Variable Manipulator

Usage:

Subtract variable1 variable2 [?result]

Arguments:

variable1


variable2

[?result]

The minuend. The first argument. The number that will be subtracted from the first argument. This argument will also contain the result if the optional [?result] argument is not passed in.

If you use the variable1 argument without the [?result] argument, variable1 must be a SecureLogin variable (either ?variable1 or $variable1). Otherwise, variable1 can be any numeric value.

The subtrahend. The second argument. The number that will be subtracted from the first argument. Variable2 can be a SecureLogin variable or a numeric value.

Optional. The difference or result of the equation.

See Add , Divide , and Multiply .

Example:

subtract 5 2 ?res 
#?res will now be 3
set ?res2 1
subtract ?res ?res2
#?res will now be 2