title: why not operator in javascript excute the first part of if statement?
body: <p>i am trying to check <code>if(a==b)</code> then <code>if(c==d)</code> and after that <code>if(a and b values) != (b and c values)</code>.</p>
  
  <pre><code>var a = 3;
  var b = 3;
  var c = 4;
  var d = 4;
  
  if ((a == b) != (c == d)){
    document.write('Yes');
  }else{
      document.write('No');
  }
  </code></pre>
  
  <p>Why not operator in javascript excute the first part of if statement?</p>