This page is also available in 3 other languages

isUpperCase()

[Characters]

Description

Analyse if a char is upper case (that is, a letter in upper case). Returns true if thisChar is upper case.

Syntax

isUpperCase(thisChar)

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is upper case.

Example Code

if (isUpperCase(myChar)) {  // tests if myChar is an upper case letter
  Serial.println("The character is upper case");
}
else {
  Serial.println("The character is not upper case");
}

See also