Evaluate
This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to execute a mathematical operation based on the provided value. The execution result is stored in the dynamic variable.
Syntax
Input Value: <operand1> <operator> <operand2>
<operand1> (Required)
Provide the first operand (value or variable) to use in the calculation.
<operator> (Required)
Provide the operator for the calculation. Supported operators are:
+ (Addition)
- (Subtraction)
* (Multiplication)
/ (Division)
^ (Exponentiation)
<operand2> (Required)
Provide the second operand (value or variable) to use in the calculation.
Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)
<Dynamic Variable> (Required)
This dynamic variable stores the evaluated mathematical result.
<Dynamic Variable> (Optional)
This dynamic variable stores the status as True or False.
Example 1: Performing Addition Using Two Numeric Values
In this example, we explain how to perform an arithmetic operation using two numbers.
Action: Evaluate
Input Value: 235+399
The first argument (235) specifies the first number.
The second argument (+) specifies the addition operator.
The third argument (399) specifies the number added to it.
Output Value: {Value}
The calculated value (634) is stored in this {Value} dynamic variable.
If a second output variable is provided, the action returns the status as True or False:
True: If the operation executes successfully.
False: If the operation fails due to invalid input or unsupported format.
Logical Explanation: The Evaluate action fetches the value from the Input Value column (235+399). It adds both values and stores the result (634) in the {Value} variable.

Example 2: Adding Two Variables Containing Numeric Values
In this example, we explain how to perform an arithmetic operation using two variables.
Action: Evaluate
Input Value: {Price1}+{Price2}
The first argument ({Price1}) specifies the value (784) stored in the variable.
The second argument (+) specifies the addition operator between the values which is stored in the variables.
The third argument ({Price2}) specifies the value (988) stored in the variable.
Output Value: {TotalPrice}
The calculated value (1772) is stored in this {TotalPrice} dynamic variable.
If a second output variable is provided, the action returns the status as True or False:
True: If the arithmetic operation executes successfully.
False: If the operation fails due to missing or non-numeric variable values.
Logical Explanation: The Evaluate action fetches the values from the Input Value column ({Price1}+{Price2}). It adds their numeric values (784+988) and stores the result (1772) in the {TotalPrice} variable.

Example 3: Performing a Complex Arithmetic Expression Using Parentheses
In this example, we explain how to perform an arithmetic operation using a longer expression that requires parentheses for correct evaluation.
Action: Evaluate
Input Value: (10+5)*(94+26)
The first argument ((10+5)) groups the addition so the system processes it before multiplication.
The second argument (*) specifies the multiplication operator that combines the results of both grouped expressions.
The third argument ((94+26)) groups another addition expression that will be multiplied with the first result.
Output Value: {Value}
The final calculated value (1800) is stored in this {Value} dynamic variable.
If a second output variable is provided, the action returns the status as True or False:
True: If the arithmetic operation executes successfully.
False: If the operation fails due to an invalid expression or undefined variable.
Logical Explanation: The Evaluate action fetches the value from the Input Value column ((10+5)*(94+26)). Because both expressions are enclosed in parentheses, the system first adds 10 + 5 = 15. It then adds 94 + 26 = 120. The system multiplies 15 × 120, producing the result 1800, which is stored in the {Value} variable.

Knowledge Bites:
Below are some examples of different mathematical operators:
^ (Exponentiation)
8^3
512
/ (Division)
908/23
39.48
- (Subtraction)
{Value1};3 8-{Value1} Note: {Value1} is a created dynamic variable, and its value is 3.
5
+ (Addition)
34.89+773.222
808.11
* (Multiplication)
89*34
3026
Last updated
Was this helpful?