String(expression)
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
String(expression)

Arguments
expression: An expression to convert to a string.

Returns
String representing the expression.

Description
This function returns a string representation of the specified parameter as follows:

·If expression is a boolean value, the return string is "1" or "0", ("1" == true).  
·If expression is a number, the return string is a text representation of the number.  
·If expression is a string, the return string is expression.  

Samples
String(4
 > 3);      // returns "1"
String(_root.s1._target);   // returns "/s1"

String(44
.3);              // returns "44.3"