WMLScript abort() Function

The abort() function aborts WMLScript and returns a message to the caller of the script.

Syntax

Lang.abort(text)
Component Description
text A string.

Example

var errtxt = "Illegal value";
Lang.abort("Error in function: " + errtxt);

Result

The script is aborted, and the string "Error in function: Illegal value" is returned. 
is returned to the caller of the script.