You are here:
Variables and Constants in Calculation Procedures (Managed Package)
For the managed package runtime, you must create variables, constants, and matrices before you can use them in a Calculation Procedure. After you create them, they will be available to use in Calculation Procedures.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
The following are a few guidelines for using variables in Calculation Procedures:
-
Create a variable for every value in the calculation.
-
A variable to the right of the equals sign (=) means that the equation output will be assigned as the variable value.
For example,
x + y = variablemeans the value of variable is now the sum of x + y. -
A variable to the left of the equals sign (=) means that the current value of the variable is part of the calculation.
For example,
x + variable = ymeans the value of y is now the sum of x plus the current value of the variable. -
A variable keeps the value assigned to it until another operation changes its value. For example:
x = 2 y = 3 variable = 0 variable = 0Step 1:
x + y = variable// 2 + 3 = 5. variable = 5Step 2:
y + y = variable// 3 + 3 = 6. variable = 6Step 3:
variable + y = variable// 6 + 3 = 9. variable is now 9.Step 4:
variable + variable = variable// 9 + 9 = 18. variable is now 18.
