Okay, I have an if sentence in which I compare a specific value multiple times. I bet there is a shorter way to do this:
if(letter == "%" || letter == "+" || letter == "-" || letter == "!")
I tried writing it as:
if(letter == "%" || "+" || "-" || "!")
But it works incorrectly.
Something like this might work: