|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > Lang > exit()
exit() - The exit Function
Usage: exit(value)
Description: Ends the interpretation of the WMLScript bytecode and returns the control back to the caller of the WMLScript interpreter with the given return value. This function can be used to perform a normal exit from a function in cases where the execution of the WMLScript bytecode should be discontinued.
Example:Lang.exit("Value: " + myVal); // Returns a string
Lang.exit(invalid); // Returns invalid
Bookmark this page
|
|