I want the user to insert a string as a parameter, and afterwards check if that string is equal to one of several strings.
The way I do it now is
....
if(stringParam != "text1" || stringParam != "text2" || stringParam != "text3"... stringParam != "text10")
....
is there not a way that to write this more readable / pretty? There probably is, but I couldn't figure a way.
Also it doesn't matter if the strings are uppercase or lowercase.