On Tuesday 29 August 2006 14:12, afan@xxxxxxxx wrote: > No. They are two if statements because they are indepedent. > > > On Tuesday 29 August 2006 13:44, Ray Hauge wrote: > >> Using a switch like this is more equivalent of > >> > >> if(something){ > >> // true > >> } else { > >> // false > >> } > > > > Actually, it's more like an if/elseif/else (if you use default:) or > > if/elseif > > (without default:) > > > > -- > > Ray Hauge > > Programmer/Systems Administrator > > American Student Loan Services > > www.americanstudentloan.com > > 1.800.575.1099 > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php I was unclear. Using a switch to replace an if statement would be replacing the if/elseif/else with the switch. You are right though. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php