Calculations

Use a dynamic MATH expression as the value of a step property to calculate it at runtime.

To perform calculations, use the Insert or Verify step properties with the syntax {MATH[<Operand 1><Operator><Operand 2>..<Operator><Operand n>]}.

Keep the following points in mind:

  • Use numeric values and scientific notation as operands.

  • Although MATH follows the standard PEMDAS order of operations, you can override it by adding parentheses.

  • Separate decimal places with a decimal point.

API simulation supports the following operators:

Operator

Description

+, -, *, /

Basic arithmetic operations

%

Modulo operation

^

Exponentiation

==

Equals

!=

Not equal

<

Less than

>

Greater than

<=

Less than or equal

>=

Greater than or equal