Skip to content
Reference > Methods

strIsnt(text)

Definition

Boolean strIsnt(String text)

Description

Returns true if the string does NOT contains characters other than whitespace characters, such as tabs, newlines, and spaces, also returns true if text is null. White space includes tabs, newlines, and spaces.

Parameter Definition

Name Type Description
text String The string to test

Examples

1
2
3
4
5
Boolean r1 = strIsnt("    "); // r1 == true
Boolean r2 = strIsnt(""); // r2 == true
Boolean r3 = strIsnt("I"); // r3 == false
Boolean r4 = strIsnt("   abc "); // r4 == false
Boolean r5 = strIsnt(null); // r5 == false