Name
toString — Convert any WMLScript value to a string
Usage
String.toString(value)
: Anythingvalue
Description
Returns a string representation of value
.
If value
is invalid
,
returns the string "invalid"
, otherwise, returns
exactly what is given by the automatic conversion of
value
to a string.
Examples
String.toString("foo")
returns string "foo"
String.toString(17)
returns string "17"
String.toString(1.5)
returns string "1.5"
String.toString(false)
returns string "false"
String.toString(invalid)
returns string "invalid"
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.