title: jquery - why if clause fires although condition is not met?
body: <p>I don't know whats going on... </p>
  
  <p>I have this:</p>
  
  <pre><code>console.log("n="+n): 
  console.log("longest.length="+longest.length);
  console.log("longest.length/n="+longest.length/n);
  
  if ( n=1 || longest.length/n != 1 ) { 
    // do something 
  }
  </code></pre>
  
  <p>console says <em>n=4</em>, <em>longest.length=4</em> and <em>longest.length/n=1</em></p>
  
  <p>Still... do something fires... what am I doing wrong?</p>