Divide

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, and Windows

SecureLogin version:

3

Type:

Variable Manipulator

Usage:

Divide variable1 variable2 [?result]

Arguments:

variable1


variable2

[?result]

The dividend. The first argument. The number that will be divided by the second argument. This argument will 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 divisor. The second argument. The number that the first argument is divided by. The variable2 argument can be a SecureLogin variable or a numeric value.

The quotient or result of the equation.

See Add , Subtract , and Multiply .

Example:

Divide 6 2 ?res 
#?res will now be 3
Set ?res2 3
Divide ?res ?res2
#?res will now be 1