Hi,
I want to check that user input is a letter only. I have managed to trap it for lower case vs upper case using this code:
I also want to prompt the user to enter a correct letter in case they choose a number or a symbol. Can this be done the same way by manipulating the ascii table? I have no issue doing that except for the characters between the lower case and uppercase letters....is there a way to isolate those characters using logical operators? I hope I make sense!!Code:if ("%d" > 64 || "%d" < 91, letter, letter) { letter = letter+32; }
Thanks