Use with: |
Startup scripts, Terminal Launcher, Web, Windows |
SecureLogin Version: |
3.0 |
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. |
Description: |
Divides one whole number by another. (Doesn't divide fractions or give results in fractions.) The numbers can be hard-coded into the script, or they can be variables. The result can either be output to another variable or to one of the original numbers. |
Syntax Examples |
Divide "1" "2" ?Result Divide ?LoginAttempts ?LoginFailures Divide ?LoginAttempts ?LoginFailures ?Result Divide ?LoginAttempts "3" Divide ?LoginAttempts "3" ?Result |
Example: Windows Script The values of Control IDs 103 and 104 are read into variables. From there they are divided and typed into Control ID 1. |
ReadText #103 ?Number1 ReadText #104 ?Number2 Divide ?Number1 ?Number2 ?Result Type ?Result #1 |