Creating Conditional Functionality with Comparison Operators
Regardless of the simplicity (or complexity) of your WMLScript application, if you’re using WMLScript, you can almost guarantee that somewhere in the code is the need to compare values.
Applications often make decisions by performing tests. For example, in the application you’ve been creating in this book, you’ve written one statement that tests whether the username entered by a user is correct. A second statement tests whether the password entered by a user is in a correct format.
You might not have realized it at the time, but the statements created to perform these tests use WMLScript’s comparison operators. These operators are listed in Table 11.5.
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.