March 2002
Intermediate to advanced
400 pages
7h 56m
English
Assignment operators are useful for setting variables to some value. In fact, you’ve already used one of these operators in previous examples in Part III: the equal sign (=).
Of course, just because the assign operator might be familiar to you, the rest of the assignment operators might not be. Table 11.1 lists the assignment operators designated in WMLScript.
| Operation | WMLScript Operator |
|---|---|
| Assign. | = |
| Add (numbers)/concatenate (strings) and assign. | += |
| Subtract and assign. | -= |
| Multiply and assign. | *= |
| Divide and assign. | /= |
| Divide (integer division) and align. | div= |
| Remainder or modulus and assign. The sign of the results equals the sign of the dividend. |
Read now
Unlock full access