Hi All,
I have a datatable below, I want to compare,
1. the SN column first to find if there is a same name row,
2. then compare the same name row to find which is row has later date on column "date1",
3. Then assign that row as "1" to column LLR.
I am using below script, but doesn't work, I don't know how to debug it, can anyone help me to learn?
dt = Current Data Table();
New Column( "LLR");
For( i = 1, i <= N Row( dt ), i++,
SNcol = Column( dt, "SN" )[i];
Datecol = Column( dt, "DATE1" )[i];
For( j = 1, j <= N Row( dt ), j++,
If( Column( dt, "SN" )[j] == SNcol,
Column( dt, "DATE1" )[j]>Column( dt, "DATE1" )[i],"1"
"0")));
