Operators (Chapter 11)
Operators are used to compare some type of condition with a variable and then evaluate a value as directed by the expression. WMLScript enables several operator types. The following is a list of operators provided with WMLScript:
Assignment operators
Arithmetic operators
Logical operators
String operators
Comparison operators
Array operators
Comma operators
Conditional operators
typeof operators
isvalid operators
Assignment Operators
Assignment operators are useful for setting variables to some value. Table B.4 lists the WMLScript assignment operators.
Operation | WMLScript Operator |
---|---|
Assign. | = |
Add (numbers)/concatenate (strings) and assign. | += |
Subtract and assign. | -= |
Multiply and assign. ... |
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.