title: Why does my if else statement return the incorrect result?
body: <p>i have the following if else statement in my Main.js file:</p>
  
  <pre><code>var fixA = "Trap";
  var fixB = "Ball";
  
  console.log(fixA); 
  console.log(fixB);
  
  if (fixA == "Mouse" || fixA == "Ball" &amp;&amp; fixB == "Mouse" || fixB == "Ball") {
      console.log("Ball hit mouse");
  }else if (
      fixA == "Trap" || fixA == "Ball" &amp;&amp; fixB == "Trap" || fixB == "Ball") {
      console.log("Ball hit trap"); 
  }else if (
      fixA == "Trap" || fixA == "Mouse" &amp;&amp; fixB == "Trap" || fixB == "Mouse") {
      console.log("Trap hit mouse");
  }
  </code></pre>
  
  <p>In my original statement the <code>fixA</code> and <code>fixB</code> variables are assigned based upon the objects colliding with each other, which did not work. It kept displaying "Ball hit mouse", the result of the if().</p>
  
  <p>Looking for the problem myself I gave the <code>fixA</code> and <code>fixB</code> a fixed string which again resulted in the same output. Even my first two console logs right after setting the variables log the correct strings. So there must be something wrong with the statement itself. I did some reading, research, etc but I cant seem to figure out whats wrong with it.</p>
  
  <p>Could somebody help me?</p>