Using Variables in WMLScript
Chapter 6 discussed the concept of variables and how they are essentially areas within applications where you can store user-inputted data.
Variables are an important part of any type of programming because they enable developers to write flexible code. Variables represent data and provide a temporary storage area for data.
In other words, when an application is used, variables are replaced with real data. This enables the same application to process different sets of data. In WML, the only type of data a variable can hold is a string value. However, in WMLScript, variables can hold not only strings, but a variety of data types (refer to Table 10.1).
In WMLScript, variables are available only within a specific function. ...