title: react js boolean value comparison
body: <p>I have a react javascript code.
  I am looping through a set of boolean values.
  When 'data.nextrow' is false, i want nextrow1 to be false too but it is getting set to true.</p>
  
  <pre><code>    console.log("before nextrow:",data.nextrow); **prints false**
      let nextrow1 = data.nextrow ? data.nextrow : true;
      console.log("after nextrow:",nextrow1); **prints true**
  </code></pre>
  
  <p>I am expecting nextrow1 to be set to FALSE</p>