Using Statements Within Your WMLScript

Now that we’ve looked at the syntax necessary to write valid WMLScript code, let’s focus on the language itself. The first concept to discuss is statements. Statements make up the set of commands executed in WMLScript, and 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. You’ll look at functions and variables in more detail in Chapter 10. For now, here’s a quick summary:

  • Functions— Some type of action the code provides. Functions can be procedure code written by a developer or a built-in library.

  • Variables— A value provided either by the user or the developer. ...

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.