How can I simplfy this logic

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-03-11T06:47:44Z Indexed on 2010/05/09 5:28 UTC
Read the original article Hit count: 167

Filed under:
|
|
|

I'm having trouble simplifying this conditional statements logic. Is there a more effervescent way of writing this?

if(($x || $a) && ($x || $y))
{
   if($x){
          return true;
   }
}
return false;

© Stack Overflow or respective owner

Related posts about if-statement

Related posts about logic