WMLScript Syntax (Chapter 9)

Syntax in WMLScript refers to the rules required for forming functionally correct code. The following are the syntax topics discussed in Chapter 9:

  • Case sensitivity

  • White space

  • Comments

  • Semicolons

Case Sensitivity

WMLScript interprets upper- and lowercase characters differently. This is especially critical when declaring function or variable identifiers.

Example

The following are all different variable names, due to WMLScript’s case sensitivity:

  • variable

  • Variable

  • VARIABLE

White Space

The term white space refers to things such as spaces, tabs, and new lines that appear in code. Because WMLScript ignores white space, users can use any number of spacing elements to improve the readability of their code.

WMLScript recognizes ...

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.