``` <#if record.item?has_content> ...
# advancedpdf
a
Copy code
<#if record.item?has_content>
      <#global itemsListCount = 0/>
      <table class="itemtable" style="width: 100%; margin-top: 30px;">
         <thead>
            <tr>
               <th colspan="3">Item #</th>
               <th colspan="3">Mfr. #</th>
               <th colspan="13">Display Name</th>
               <th colspan="3">Units</th>
               <th colspan="3">Ordered</th>
               <th colspan="3">Shipped</th>
               <th colspan="3">Remaining</th>
            </tr>
         </thead>
         <#list record.item as tranline>
         <tr style="background-color: ${((itemsListCount % 2) == 0)?string('#ffffff', '#F2F2F2')};">
            <td colspan="3">${tranline.item} </td>
            <td colspan="3">${tranline.mpn}</td>
            <td colspan="13"><small>${tranline.custcol3}</small></td>
            <td colspan="3">${tranline.units}</td>
            <td colspan="3">${tranline.quantity}</td>
            <td colspan="3">${tranline.quantitycommitted}</td>
            <td colspan="3">${tranline.quantitybackordered}</td>
        </tr>
         <#assign itemsListCount = itemsListCount + 1 />
         </#list>
      </table>
      </#if>