title: If statement in jQuery template
body: <p>The following code <strong>returns an error</strong> "<em>Uncaught ReferenceError: size is not defined</em>" in Chrome if variable size is not defined:</p>
  
  <pre><code>&lt;script type="text/x-jquery-tmpl"&gt;    
      {{if name &amp;&amp; size}}
          &lt;p&gt;${name}&lt;/p&gt;
          &lt;p&gt;${size}&lt;/p&gt;
      {{/if}}
  &lt;/script&gt;
  </code></pre>
  
  <p>While this code <strong>works fine</strong> :</p>
  
  <pre><code>&lt;script type="text/x-jquery-tmpl"&gt;  
      {{if name}}
          {{if size}}
              &lt;p&gt;${name}&lt;/p&gt;
              &lt;p&gt;${size}&lt;/p&gt;
          {{/if}}
      {{/if}}
  &lt;/script&gt;
  </code></pre>
  
  <p>Can I somehow make it work in Chrome <strong>without using double if statement</strong> and why does it return an error at all?</p>