Re: [PHP] Re: multiple OR's

2005-03-17 Thread Jeff Schmidt
AndreaD wrote: This works... But not the way you think it does. if ($name == jim || andrea || tommy) This if statement will first check to see if $name == "jim" (oh yeah, you are missing quotes around jim, andrea, and tommy, by the way). Then, it does *NOT* check to see if $name == andrea. Inste

[PHP] Re: multiple OR's

2005-03-17 Thread AndreaD
This works... if ($name == jim || andrea || tommy) I must have had an extra ( somewhere. AD "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Looking for the most code efficient way to do multiple boolean OR's on one > line > > if ($name==andrea) OR ($name==john) > > Ta