Name

exit — Stop execution of the WMLScript interpreter (normal)

Usage

Lang.exit(value)

value : Anything

Description

Exits from the WMLScript interpreter and returns value to whatever caused the interpreter to be run (such as the WML browser). This function never returns to the WMLScript code.

If WMLScript is invoked from WML, as is currently the only way, this exit value is ignored.

Examples

Lang.exit("foo")
Lang.exit(invalid)
Lang.exit(6.7)

Get Learning WML, and WMLScript 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.