WMLScript max() Function
The max() function returns the highest value between x and y.
Syntax
n = Lang.max(x,y)
Component | Description |
---|---|
n | The number returned from the function. |
x | A number. |
y | A number. |
Example
var a = Lang.max(20, 40.3); var b = Lang.max(60, 59.7);
Result
a = 40.3 b = 60