title: Skipping NULL value in Handlebars each loop
body: <p>In Handlebars I am looping through a list and am building a table based on the values as follows:</p>
  
  <pre><code>&lt;table class="table table-striped table-condensed"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              {{#each header}}
                  &lt;th data-id="{{@index}}" style="cursor: pointer"&gt;{{this.label}} &lt;i class=" icon-resize-vertical"&gt;&lt;/i&gt;&lt;/th&gt;
              {{/each}}
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          {{#each objects}}
              &lt;tr&gt;
                  {{#each this.properties}}
                      &lt;td&gt;
                          {{#if @first}}
                              &lt;a data-id="{{subIndex ../../this}}"&gt;{{this}}&lt;/a&gt;
                          {{/if}}
                          {{#unless @first}}
                              {{#if this}}
                                  {{this}}
                              {{/if}}
                          {{/unless}}
                      &lt;/td&gt;
                  {{/each}}
              &lt;/tr&gt;
          {{/each}}
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The part that is giving me problems is the section:</p>
  
  <pre><code>{{#unless @first}}
      {{#if this}}
          {{this}}
      {{/if}}
  {{/unless}}
  </code></pre>
  
  <p>The purpose of this section is to check first if the current value in the loop is not null, and if it is not null, then display it. Otherwise, just skip it. However, this outputs</p>
  
  <pre><code>[object Window]
  </code></pre>
  
  <p>as if the value of <code>this</code> is somehow not bound to the current place in the loop.</p>
  
  <p>My question is basically, do I need to be checking for a null value some other way?</p>