Aritmetic Operation Step

Brief description

This step sets the value of the existing variable of any data type.

Step Information

Step name (Not required) the custom name of the process step that labels the editor’s process step box

Input parameters

  • Append variable (Not required)– drop-down menu containing the variables used in the process
  • Add variable (Not required)– button that adds the selected variable from drop-down menu
  • Expression (Required)– a combination of one or more operands (either variables or constants) and operators used to save calculated results in the existing variable.

Additional comments

The syntax used for defining variable value: *VAR* = *VARa* OP *VARb*

Where “VAR” is variable name intended to set the resulting value, “=” is the assignment operator, “OP” is the operator, “VARa” is variable name containing the first value and “VARb” is variable name containing the second value.

More than one operator/variable can be used.

If a constant is used instead of variable, it needs to be surrounded in double quote marks.

Operations supported include basic .NET Operators and Expressions.

Supported operators:

  • Addition operator (+)
  • Subtraction operator (-)
  • Remainder operator (%)
  • Division operator (/)
  • Multiplication operator (*)

Not supported operators:

  • Decrement operator (--)
  • Increment operator (++)
  • Compound assignment (-=, +=, %=, /=, *=)

 

For more information, you can check Microsoft Online Documentation

Was this article helpful?