Okay I am writing a program where i need to check if a certain character is equal to 'C', 'A', 'R' and about 7 other letters. Now I was wondering if there was a way to make a short list in an if statement to check if they are equal.

such as
if (TheLine[i] != {'C', 'A', 'R', 'P', 'q', 's'}){

}


but that doesn't work the way it does in other languages. Is there a way to do this, or do I need to do it in a different way? Thanks. If this post isn't clear in my question I will try asking it in another way. Thanks