title: Is it possible to nest if/else statements in handlebars templates?
body: <p>I'm wondering if it is possible to nest multiple if/else statements using handlebars? All my attempts so far have resulted in compile errors, what I'd like to do is as follows:</p>
  
  <pre><code>{{if address}}
      &lt;ul&gt;
      &lt;li&gt;address.line1&lt;/li&gt;
      &lt;li&gt;address.line2&lt;/li&gt;
      {{if address.line3}}&lt;li&gt;address.line3&lt;/li&gt;{{/if}}
      {{if address.line4}}&lt;li&gt;address.line4&lt;/li&gt;{{/if}}
  {{else}}
     No address given
  {{/if}}
  </code></pre>
  
  <p>Is what I'm attempting here achievable? It always results in parser errors, thusfar I've got around it by writing a helper to deal with spitting out the address (which deals with conditionality of line3/line4 in javascript):</p>
  
  <pre><code>{{if address}}
      {{formatAddress address}}
  {{else}}
     No address given
  {{/if}}
  </code></pre>
  
  <p>While this works, it would be nice not to have to write a helper function for every instance of this sort of simple conditionality.</p>