NexJ Logo

IsEmpty()

Checks whether the specified string of text is empty or null. This function takes a string value as an argument and returns a Boolean value. If the string is empty or null, the function returns the Boolean value TRUE, otherwise it returns the Boolean value FALSE. Empty strings contain no characters. For example, the string "" is considered empty.

Syntax

IsEmpty(<text>)

Input

text

string

The text to check.

Output

Boolean

Examples

  • The expression IsEmpty("") returns TRUE.
  • The expression IsEmpty(null) returns TRUE.
  • The expression IsEmpty("The quick brown fox") returns FALSE.