title: Javascript if condition on boolean
body: <p>Can you explain why the if condition doesn't work without the eval function:</p>
  
  <pre><code>var myBoolean= document.getElementById("someBoolean").value;  //This is a 'false'
  
  if(myBoolean)
  { 
    alert(Your boolean is True);  //This condition always getting executed even though myBoolean is false;
  }
  
  if(eval(myBoolean))
  {
   alert("You will never see this alert bcoz boolean is false");
  }
  </code></pre>