@Text (JavaScript)

Converts a value to a string.

Defined in

@Functions (JavaScript)

Syntax

@Text(value:any) : string
Parameter Description
value A value that can be converted to a string.
Return value Description
string The equivalent string, or an empty string if the value cannot be converted.

Examples

This example demonstrates the conversion of a number and a date to strings.
function p(stuff) {
	print("<<<" + stuff + ">>>");
}

var n = 1/3;
p(@Text(n)); // <<<0.3333333333333333>>>
var d = @Now();
p(@Text(d)); // <<<4/12/06 1:44 PM>>>