Manipulating Strings with the WMLScript String Operators

String operators provide the capability to connect string variables together (better known as concatenating). Two string operators are available to enable developers to concatenate strings together (see Table 11.6).

Table 11.6. The WMLScript String Operators
Operation WMLScript Operator Description
Addition + Returns the sum of combining operands. It’s similar to the addition arithmetic operator, but in this case, the operands are strings.
Assignment with addition += Returns the sum of combining operands, and then assigns the new value to the original operand. It’s similar to the assignment with addition operator, but in this case, the operands are strings.

To get an idea of how string ...

Get WAP 2.0 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.