Is there a shorthand way to check one variable for multiple values?
I find myself wanting to shorten that, since I am checking the same value, I want to write it out as "value != (x or y)."Code:if (Value1 != x && Value1 != y)
Especially since when I end up checking the same value for multiple entries I usually have some long-A variable names.
Is there a shorthand way to write that?