Assignment operators
In PerformancePoint Expression Language (PEL), assignment operators store a result in the object designated by the left operand.
PEL assignment operators can be used on two kinds of operands.
Assignments to cells in a model
For assignments to cells in the model, the left operand must be of type Scope type and the right operand must be of Number type. The result is of type Scope.
Assignments to variables
For assignments to variables, the right operand must the same type as the left operand. Alternatively, the right operand must be a type that can be implicitly converted to the type of the left operand. The result of the assignment operation is the type of the left operand. For more information about implicit conversions, see Type conversions (PEL).
The following table describes the assignment operators that PEL supports.
Assignment operator | Code | Description |
---|---|---|
= |
|
Simple assignment. This operator sets Expression1 to the value of Expression2. If Expression2 is reassigned to a different value in another assignment statement, the reassignment has no affect on Expression1. |
= |
|
Definition assignment. Supported in definition rules only. This operator makes the value of Expression1 always equal to the value of Expression2. That is, if Expression2 changes, the value of Expression1 changes to the same value. |
+= |
|
Addition assignment. This operator adds the value of is equivalent to Expression1 |
-= |
|
Subtraction assignment. This operator is equivalent to Expression1 |
*= |
|
Multiplication assignment. This operator is equivalent to Expression1 |
/= |
|
Division assignment. This operator is equivalent to Expression1 |
^= |
|
Power assignment. This operator is equivalent to Expression1 |
For more information about CURRENTTUPLE, see Primary expressions (PEL).