Multiply

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, Windows

SecureLogin Version:

3.0

Type:

Variable manipulator

Usage:

Multiply Variable1 Variable2 [?Result]

Arguments:

Variable1


Variable2

[?Result]

The multiplicand. The first argument. The whole number (but not a fraction) that will be multiplied 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 multiplier. The second argument. The number that the first number will be multiplied by. Variable2 can be a SecureLogin variable or a numeric value.

Optional. The product or result of the equation.

Description:

Multiplies one number by another. The numbers can be hard-coded into the script, or they can be variables. The result can be output to another variable or to one of the original numbers.

Syntax Examples:

Multiply "1" "2" ?Result
Multiply ?LoginAttempts ?LoginFailures
Multiply ?LoginAttempts ?LoginFailures ?Result
Multiply ?LoginAttempts "3"
Multiply ?LoginAttempts "3" ?Result

Example:
Windows Script
The values of control IDs 103 and 104 are read into variables. From there they are multiplied, then typed into control ID 1.

ReadText #103 ?Number1 
ReadText #104 ?Number2
Multiply ?Number1 ?Number2 ?Result
Type ?Result #1