title: if condition with ternary operator not returning true or false
body: <p>I am comparing 2 object properties in Nodejs</p>
  
  <pre><code> if(alteredItem.main != (result.main)?result.main:"NULL"){
  </code></pre>
  
  <p>I am using debug mode in VSCODE so when I check:</p>
  
  <pre><code>alteredItem.main = "232"
  result.main = "232"
  </code></pre>
  
  <p>So, I am expecting the result of the above condition to be <code>False</code> but my debug console shows that the value is :</p>
  
  <pre><code>"NULL"
  </code></pre>
  
  <p>If I remove the ternary operator and change the condition to:</p>
  
  <pre><code>if(alteredItem.main != result.main){
  </code></pre>
  
  <p>this does return <code>false</code>.</p>
  
  <p>Why does it return <code>"NULL"</code> when I use the ternary operator?</p>