Complex Assignment

A complex assignment assigns the value of the complex expression on the right side of the assignment operator (:=) to the complex variable on the left side.

<complex assignment>

──<complex variable>─┬─ := ──<complex expression>──┬───────────────────┤
                     └─<complex update assignment>─┘

<complex variable>

──<variable>───────────────────────────────────────────────────────────┤

Complex Update Assignment

<complex update assignment>

──<update symbols>─┬─────────────────────────────────────────────────┬─┤
                   └─<complex operator>──<simple complex expression>─┘

The complex update assignment is a shorthand form of assignment that can be used when the complex variable on the left side of the assignment operator (:=) also appears in the complex expression on the right side of the operator. The asterisk (*) represents a duplication of the variable to the left of the assignment operator. For example, the following two assignments produce the same results:

C := * + COMPLEX(3,4)

C := C + COMPLEX(3,4)

The target variable is not reevaluated at the appearance of the asterisk.

If the item to the left of the assignment operator is a subscripted variable, it cannot reference a value array.

Examples of Complex Assignments

C1 := COMPLEX(8,1.5)

C2 := * + C1/2