This page is also available in 3 other languages

isAlpha()

[Characters]

Description

Analyse if a char is alpha (that is a letter). Returns true if thisChar contains a letter.

Syntax

isAlpha(thisChar)

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is alpha.

Example Code

if (isAlpha(myChar)) {  // tests if myChar is a letter
  Serial.println("The character is a letter");
}
else {
  Serial.println("The character is not a letter");
}

See also