Analyze if a char is upper case (that is, a letter in upper case). Returns true if the input char is upper case.
Use the following function to evaluate a char variable:
isUpperCase(thisChar)
The function admits the following parameter:
thisChar: char variable to evaluate. Allowed data types: char.
The function returns true if the evaluated input variable is upper case.
char myChar = 'A'; // try with 'a' for a non upper case char
void setup() {
Serial.begin(9600);
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");
}
}
void loop() {
}