On Fri, 15 Mar 2002, Ralph Jarvis wrote: > An obvious question for some, but I am stumped: > I want to use multiple optins in an "if" statement... > if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) > What would be the proper syntax for this?
Sometimes I find a switch to be the most efficient (and least typing) approach: switch(user($arbitraryVariable)) { case 1: case 2: case 3: case 4: do whatever break; default: do the other thing } miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php