View Single Post
Old 07-16-2008, 09:26 PM   #9 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

I think what he's trying to say is that;

PHP Code:

if ($condition == this && $condition == that) ....

// is the exact same thing as doing

if ($condition == this)
{
    if (
$condition == that) ..... 
The only time it would make a real difference is if you need to run an operation after the first condition is met and before the second is checked.
-m
delayedinsanity is offline  
Reply With Quote