Skip to content
Reference > Methods

strIs(text)

Definition

Boolean strIs(String text)

Description

Returns true if the string contains characters other than whitespace characters, such as tabs, newlines, and spaces. Returns false if mismatch, text is null or empty. 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 = strIs("    "); // r1 == false
Boolean r2 = strIs(""); // r2 == false
Boolean r3 = strIs("I"); // r3 == true
Boolean r4 = strIs("   abc "); // r4 == true
Boolean r5 = strIs(null); // r5 == false