Skip to content

Modern String IsBlank

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › String Library › String Library › IsBlank

IsBlank

Returns true if the string is empty or holds only whitespace.

Syntax

IsBlank( s )

Notes

  • O(n) — boolean

Examples

#import "std/strings"
using strings

print IsBlank( "" )                    '' true
print IsBlank( "   " & chr(9) )        '' true -- space, tab, LF, VT, FF, CR
print IsBlank( " x " )                 '' false

'' Skipping empty configuration lines
dim as ustring line_ = "   "
if IsBlank( line_ ) then print "nothing to parse"

Library: String Library
Category: String Library
Documented under: The Functions

Clone this wiki locally