Creator Change History: Ways to improve

Creator Change History: Ways to improve

Hi Everyone,

Recently been working in developing this change history(an idea from Zoho Forms) - unlike forms that you can this with a click but using Creator, we can use "old" keyword.

The concept I come up with is to put the result in a table however, I think I'm still missing something

Here's the partial code - the resulting value will be sent as email (invoke sendmail)

//AV Pre-Commissioning
AVPrecomm_FLRTD_OLD = "<table border=1 cellspacing=0 cellpadding=0 style=width:25% border-width: thin>";
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "<tr style = border-width: thin>" + "<th style=text-align:center>OLD</th>" + "</tr>";
//OLD
for each RecordFileOLD in old.AV_Pre_Commissioning_Inspection
{
OldFlr = RecordFileOLD.AV_Floor;
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "<tr style = border-width: thin>";
if ( OldFlr != null ) 
    {
if ( OldFlr != AV_Pre_Commissioning_Inspection.AV_Floor ) 
        {
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "<td style=text-align:center>" + OldFlr + "</td>";
        }
    }
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "</tr>";
}
AVPrecomm_FLRTD_OLD = AVPrecomm_FLRTD_OLD + "</table>";
//NEW/RETAIN
AVPrecomm_FLRTD_NEW = "<table border=1 cellspacing=0 cellpadding=0 style=width:25% border-width: thin>";
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "<tr style = border-width: thin>" + "<th style=text-align:center>NEW/RETAIN</th>" + "</tr>";
for each  RecordFile in input.AV_Pre_Commissioning_Inspection
{
NewList = RecordFile.AV_Floor;
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "<tr style = border-width: thin>";
if ( NewList != null ) 
    {
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "<td style=text-align:center>" + NewList + "</td>";
    }
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "</tr>";
}
AVPrecomm_FLRTD_NEW = AVPrecomm_FLRTD_NEW + "</table>";


sample output 

My problem: what I want is to make a side-by-side table.