Use the Assignment statements to assign new values to declared variable identifiers or to infopad cells. The general syntax for an assignment statement is:
In the first example, the value 0 is assigned to the totalamount slot of the infopad cell identified by row: "ProductOrder" and column given in event attribute: evt1.region.
In example 2, the maximum between the slot: maxamount of the infopad cell and the event attribute: evt1.amount is calculated, and reassigned to the maxamount slot. The operator "::=" indicates that it does NOT mention the first argument of the function on the right side (that is, max), assumed to be the same as the expression on the left side. You may rewrite Example 2 using the normal ":=" assignment operator, but it would then be longer, as shown in Example 2’ below:
In Example 3, the operator "+=" is a contraction commonly used in programming languages, for incrementing the left hand side identifier with the value in right hand side. The operator "++" indicates that the value of the left hand side identifier is incremented by 1.