Add

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, and Windows

SecureLogin version:

3

Type:

Variable Manipulator

Usage:

Add variable1 variable2 [?result]

Arguments:

variable1






variable2

[?result]

The first argument, the number that the second argument will be added to. If the optional ?result argument is not passed in, this argument also contains the result of the addition equation. If you use variable1 without the ?result argument, variable1 must be a SecureLogin variable (either ?variable1 or $variable1). Otherwise, variable1 can be any numeric value.

The second argument, the number added to the first argument in the equation. Variable2 can be a SecureLogin variable or a numeric value.

Optional. The sum or result of the equation.

See Subtract , Divide , and Multiply .

Example:

Add 1 2 ?res 
#?res will now be 3 
Set ?res2 4 
Add ?res ?res2
#?res will now be 7