title: How to convert string to Boolean in javascript?
body: <p>I have a public property returned from my code-behind class to <code>aspx</code> page:</p>
  
  <pre><code>window.MyWIndow.IsFull = '&lt;%=this.IsFull%&gt;';
  </code></pre>
  
  <p>In code-behind it is defined this way:</p>
  
  <pre><code>public bool IsFull
  {
      get;
      set;
  }
  </code></pre>
  
  <p>Now, when I use it in my javascript file, I have the following code:</p>
  
  <pre><code>var isShow = myself.IsFull;
  </code></pre>
  
  <p>This way <code>isShow</code> is either <code>'True'</code> or <code>'False'</code></p>
  
  <p>I need to convert it on the page level, so <code>isShow</code> is <code>boolean</code> instead of <code>string</code>.</p>
  
  <p>So I can write the <code>if else</code> logic</p>
  
  <p>How can I do it?</p>