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.
Analyse if a char is alpha (that is a letter). Returns true if thisChar contains a letter.
isAlpha(thisChar)
thisChar
: variable. Allowed data types: char
true
: if thisChar is alpha.
if (isAlpha(this)) // tests if this is a letter
{
Serial.println("The character is a letter");
}
else
{
Serial.println("The character is not a letter");
}
LANGUAGE char
LANGUAGE if (conditional operators)
LANGUAGE while (conditional operators)
LANGUAGE read()