title: How do i compare against an empty variable?
body: <p>If I set a variable to 0, I get the weird behavior that a comparison to "" (empty) is true. How do I check that the variable is really empty?</p>
  
  <pre><code>tmp = 0;
  
  if ( tmp != "")
  {
      //do something - This is where the code goes.
  }
  else
  {
     //isEmpty - I would expect to be here
  }
  </code></pre>