NexJ Logo

IsString()

Checks whether the specified value is a string of text. This function takes an argument of any type and returns a Boolean value. If the value is a string, the function returns the Boolean value TRUE. If the value is not a string, the function returns the Boolean value FALSE.

Syntax

IsString(<value>)

Input

value

Boolean, date, integer, number, string

The value to check.

Output

Boolean

Examples

Assume that you have a form in which there is a text question and a number question. The text question has the reference name first_name and was answered Lee. The number question has the reference name number_of_cars and was answered 2.

  • The expression IsString($first_name) returns TRUE.
  • The expression IsString("Lee") returns TRUE.
  • The expression IsString($number_of_cars) returns FALSE.
  • The expression IsString(2) returns FALSE.