Menu
I want to check whether a variable is equivalent to one of several. Basically i want to do this…
[code]if ( myColor != (‘red’ || ‘green’ || ‘blue’) ) {
alert(‘myColor is not a primary color!’);
}
is something like this possible? i know i could use a switch statement or if statements, but that seems more verbose than necessary…