NexJ Logo

ToString()

Converts the specified value to a string of text. This function takes a Boolean, number, or string value as an argument and returns a string value.

Syntax

ToString(<value_to_convert>)

Input

value_to_convert

Boolean, number, string, null

The value to convert to a string.

Output

string

Examples

  • The expression ToString(3) returns "3".
  • The expression ToString(3.14) returns "3.14".
  • The expression ToString("3.14") returns "3.14".
  • The expression ToString(TRUE) returns "TRUE".