This page is also available in 3 other languages

isSpace()

[Characters]

Description

Analyse if a char is the space character. Returns true if thisChar contains the space character.

Syntax

isSpace(thisChar)

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is a space.

Example Code

if (isSpace(myChar)) {  // tests if myChar is the space character
  Serial.println("The character is a space");
}
else {
  Serial.println("The character is not a space");
}

See also