IsSpace Function

Action

Tests whether the first character of a string is a whitespace character.

Syntax

bTest = IsSpace(sString)
Variable Description
bTest TRUE if the character is whitespace. BOOLEAN.
sString The string to test. STRING.

Notes

IsSpace returns TRUE if the first character of sString is a whitespace character; otherwise it returns FALSE. Whitespace characters are spaces, horizontal tabs, vertical tabs, carriage returns, linefeeds, and formfeeds.

IsSpace emulates the application of the C library function iswspace on the first character of a specified string.

Example

Print(IsSpace(" hello")) // prints: TRUE
Print(IsSpace("world")) // prints: FALSE