title: How to ask if two variables are equal to something in one if statement
body: <p>What I'm trying to do is make an if statement asking to check that two separate int variables equal a certain number, and if they don't, run a piece of code.</p>
  
  <p>E.g.</p>
  
  <pre><code>int x = 10;
  int y = 10;
  
  if((x &amp;&amp; y) != 9)
    //do something
  </code></pre>
  
  <p>Please help me out </p>