title: logical and operator not working properly in javascript
body: <p>i am checking certain condition in documnet.ready and &amp;&amp; operator is not working
  code snippet 
  lblvalue is empty.</p>
  
  <pre><code>$(function () {
   var lblValue = $("#lblRadioText").text();
      if (lblValue.length &gt; 0 &amp;&amp; hasWhiteSpace(lblValue) &gt; 0) {
          $("#rdExportLastTime").css('display', 'inline');
      }
  });
  
  function hasWhiteSpace(text) {
      return text.indexOf(' ') &gt;= 0;
  }
  </code></pre>
  
  <p>can you tell me what is wrong.</p>