i wonder if its possible to combine both operators (OR and AND) in one if statement like this.
if($apple==1 && $orange==2 || cake==0)
What i want to state is: if apple equals 1 AND orange equals 2, OR cake equals 0 then do this. In other words, i need apple and orange to equal the numbers stated above OR cake to equal 0.
Is this expression correct? If not, whats the simplest way to do it?
Thank you.