O'Reilly logo

Learning WML, and WMLScript by Martin Frost

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

toString — Convert any WMLScript value to a string

Usage

String.toString(value)

value : Anything

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"

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required