This works... if ($name == jim || andrea || tommy) I must have had an extra ( somewhere. AD "AndreaD" <andrea.davidson@xxxxxxxxxxxx> wrote in message news:20050317122507.34687.qmail@xxxxxxxxxxxxxxxx > Looking for the most code efficient way to do multiple boolean OR's on one > line > > if ($name==andrea) OR ($name==john) > > Ta > > AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php