WMLScript setVar() Function

The setVar() function sets the value of the specified variable in the browser environment.

Syntax

n = WMLBrowser.setVar(variable, value)
Component Description
n The boolean value returned by this function.
Variable A string.
Value A string.

Example

var a = WMLBrowser.setVar("weeks", 34);

Result

a = true