its the condition required on a cell
now for condition before is
else if(vendtrans.TransType != LedgerTransType::Payment && vendtrans.TransType != LedgerTransType::Settlement && vendtrans.DueDate <= toDate)
and condition after is (vendtrans.TransType == LedgerTransType::Payment , how these can be put together else if(vendtrans.TransType != LedgerTransType::Payment && vendtrans.TransType != LedgerTransType::Settlement && vendtrans.DueDate <= toDate)
{
AdvToVend = vendtrans.AmountMST;
cell = null;
cell = cells.get_Item(currentRow, 9);
cell.get_style().get_Numberformat().set_Format("0");
cell.set_Value(AdvToVend);
}