I have a scenario where I need to print 5 rows of data, 7 columns on each row. 2 of the columns contain numeric data. I need to suppress the printing of the numeric fields if the field in the first column is empty. In the example below I’m testing for an empty value in $TR4_NM and if it is empty I skip the printing of the other $TR4_ fields. This looks correct to me but maybe you can’t do this type of thing in the PDF tool. I"m hoping someone has a solution. Thanks in advance for any suggestion.
/*------------------ Page 1 -----------------*/
sc_pdf_print($Client);
sc_pdf_print($RptDate);
sc_pdf_print($BusName);
sc_pdf_print($BusAddress);
sc_pdf_print($BusCity);
sc_pdf_print($BusState);
sc_pdf_print($BusZip);
sc_pdf_print($BusType);
sc_pdf_print($InBusSince);
sc_pdf_print($BusStructure);
sc_pdf_print($BankName);
sc_pdf_print($BankAcctNo);
sc_pdf_print($BankAcctType);
sc_pdf_print($BankAcctOpened);
sc_pdf_print($BankAvgBal);
sc_pdf_print($BankRetChecks);
sc_pdf_print($TR1_NM);
sc_pdf_print($TR1_SS);
sc_pdf_print($TR1_HC);
sc_pdf_print($TR1_CB);
sc_pdf_print($TR1_TM);
sc_pdf_print($TR1_PH);
sc_pdf_print($TR1_RC);
sc_pdf_print($TR2_NM);
sc_pdf_print($TR2_SS);
sc_pdf_print($TR2_HC);
sc_pdf_print($TR2_CB);
sc_pdf_print($TR2_TM);
sc_pdf_print($TR2_PH);
sc_pdf_print($TR2_RC);
sc_pdf_print($TR3_NM);
sc_pdf_print($TR3_SS);
sc_pdf_print($TR3_HC);
sc_pdf_print($TR3_CB);
sc_pdf_print($TR3_TM);
sc_pdf_print($TR3_PH);
sc_pdf_print($TR3_RC);
if (!empty($TR4_NM)) {
sc_pdf_print($TR4_NM);
sc_pdf_print($TR4_SS);
sc_pdf_print($TR4_HC);
sc_pdf_print($TR4_CB);
sc_pdf_print($TR4_TM);
sc_pdf_print($TR4_PH);
sc_pdf_print($TR4_RC);
}
sc_pdf_print($TR5_NM);
sc_pdf_print($TR5_SS);
sc_pdf_print($TR5_HC);
sc_pdf_print($TR5_CB);
sc_pdf_print($TR5_TM);
sc_pdf_print($TR5_PH);
sc_pdf_print($TR5_RC);
sc_pdf_print($UCC);
sc_pdf_print($SANDJ);
sc_pdf_print($EverInCollection);
/*-------------------------------------------*/