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

=

Expression1 = Expression2

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.

=

Expression1 = Expression2

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.

+=

Expression1 += Expression2

Addition assignment.

This operator adds the value of is equivalent to Expression1= CURRENTTUPLE+Expression2.

-=

Expression1 -= expression2

Subtraction assignment.

This operator is equivalent to Expression1= CURRENTTUPLE -Expression2.

*=

Expression1 *= expression2

Multiplication assignment.

This operator is equivalent to Expression1= CURRENTTUPLE*Expression2.

/=

Expression1 /= expression2

Division assignment.

This operator is equivalent to Expression1= CURRENTTUPLE/Expression2.

^=

Expression1 ^= expression2

Power assignment.

This operator is equivalent to Expression1= CURRENTTUPLE^Expression2.

For more information about CURRENTTUPLE, see Primary expressions (PEL).

See Also

Other Resources

PEL operators