I'm building some html based on JSON data returned from a WebMethod. I need to know how to leave out certain
elements, based on if a particualr value is present or not. I've got this, so far but, i get syntax error within VS$.each(amlData, function (index, item) {
$('<div class=message><pre><dl><dt>Matched On:</dt><dd>' + item.ItemType +
'</dd><dt>Date Listed:</dt><dd>' + item.DateListed +
'</dd><dt>ID:<dt><dd>' + item.ID +
'</dd><dt>Percentage:</dt><dd>' + item.PercentageMatch +
'</dd><dt>List:</dt><dd>' + item.List +
'</dd>' if(item.Gender != null) { + '<dt>Gender:</dt><dd>' + item.Gender } + '</dl></pre></div>').appendTo('div#results');
});