I want to check a char variable is one of 21 specific chars, what is the shortest way I can do this?
For example:
if(symbol == (\'A\'|\'B\'|\'C\')){}
It might be clearer written as a switch statement with fall through e.g.
switch (symbol){ case 'A': case 'B': // Do stuff break; default: }