Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.16 KB

isAlpha.adoc

File metadata and controls

78 lines (52 loc) · 1.16 KB
title categories subCategories
isAlpha()
Functions
Characters

isAlpha(thisChar)

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