title: Boolean checks in underscore templates
body: <p>I had to replace the default underscore teplating delimiters/Interpolate regex for compatibility with asp.net webforms.From the website i opted for mustache like syntax</p>
  
  <pre><code>_.templateSettings = {
    interpolate : /\{\{(.+?)\}\}/g
  };
  </code></pre>
  
  <p>tried this</p>
  
  <p><code>_.template("{{if(loggedIn)Welcome {{name}}}}",{name:"James",completed:true});</code></p>
  
  <p>but seems this is not the way( since a error occurred) to check boolean expression using a templating system. But from the docs seems it is possible </p>
  
  <blockquote>
    <p>as well as execute arbitrary JavaScript code, with &lt;% … %></p>
  </blockquote>
  
  <ul>
  <li>So how do i execute arbitrary js code with the above mentioned interpolation</li>
  </ul>