When two conditions must both be met, if the first one is not met does it just skip and not bother checking the other condition?
example:
if(5 = 4 && $x != $y){
}
Does it even check to see if $x != $y? Because 5 doesn't equal 4, so whether or not $x != $y is correct the IF statement will fail anyways.
I'm curious because if it does skip the second condition, it would be good practice to put the more complicated calculations/functions as the second condition.
I meant 5 == 4 not 5 = 4
example:
if(5 = 4 && $x != $y){
}
Does it even check to see if $x != $y? Because 5 doesn't equal 4, so whether or not $x != $y is correct the IF statement will fail anyways.
I'm curious because if it does skip the second condition, it would be good practice to put the more complicated calculations/functions as the second condition.
I meant 5 == 4 not 5 = 4