123456789101112131415161718192021
switch (selection) { case 'A' || 'a': aFunc(Houses); break; case 'B' || 'b': //The error is here bFunc(Houses); break; case 'C' || 'c': //The error is here cFunc(Houses); break; case 'D' || 'd': //The error is here dFunc(Houses); break; case 'E' || 'e': // The error is here eFunc(Houses); break; }
true
false
12
'A' || 'a' == 1 'B' || 'b' == 1
case 'A': case 'a':