Programming Question

oiprocs

Diamond Member
Jun 20, 2001
3,780
2
0
I'm doing an if-else statement, and only A,a,B,b will result in an execution of the statements.

if (choice == 'A')

How can I make this so that it doesn't matter if the input is lowercase or uppercase a?


-------------------------------
Please use the proper forum

Senior Anandtech Moderator
Common Courtesy
 

KillerCharlie

Diamond Member
Aug 21, 2005
3,691
68
91
It'd probably help if:

1) You posted in the programming forum
2) You told us what language this is
 

Casawi

Platinum Member
Oct 31, 2004
2,366
1
0
Originally posted by: KillerCharlie
It'd probably help if:

1) You posted in the programming forum
2) You told us what language this is

It doesn't matter what language it is.