Statements (Chapter 9)

Statements make up the set of commands executed in WMLScript. These commands provide the functionality to an application. A statement is a set of functions or variables that evaluates to a single value. This value can be a number, string, or logical value. Table B.2 lists WMLScript’s available statements.

Table B.2. WMLScript Statements
Statement Definition Example
Expression Used in all WMLScript operations that perform some sort of calculation. These statements are covered in Chapter 11.
var message = message + 
"The password must be 
6 digits." 
Block A statement that is enclosed by curly brackets.
{ 
WMLBrowser.go 
("login.wml#badpass"); 
}  
if A statement that enables you to conditionally perform one of two operations. ...

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.