title: jQuery append with conditions
body: <p>I have a table that is populated by a getJSON call. Is it possible to append the table with a condition? For example, I don't want rows appended if the table row has <code>true</code> in the Excluded (4th column). The below snippet is a 100% working getJSON call that populates all data from the manifest.json file. </p>
  
  <pre><code>            $.getJSON("/db/manifest.json").then(function(data) {
              console.log(data);
  
              var tr = data
              for (var i = 0; i &lt; data.length; i++) {
                  var tr = $('&lt;tr/&gt;');
  
                  $(tr).append("&lt;td&gt;" + data[i].id + "&lt;/td&gt;");
                  $(tr).append("&lt;td&gt;" + data[i].name + "&lt;/td&gt;");
                  $(tr).append("&lt;td&gt;" + data[i].reward + "&lt;/td&gt;");
                  $(tr).append("&lt;td&gt;" + data[i].excluded + "&lt;/td&gt;");
                  $('#user-table').append(tr);
              }
  
          });
  </code></pre>