Where lastrow is a variable of type System.Data.Datarow
Now use IF condition like this
Lastrow = Nothing
If true it goes to then block where we don’t need to do anything as it is doesn’t have any such value in datatavle
If false it goes to ELSE block where let’s use a assign activity to get the index of that lastrow like this
int_lastrowindex = dt.Rows.IndexOf(lastRow)
where int_lastrowindex is a variable of type int32
Now use a final assign activity like this to remove the rows above to the index we have found
I get an error at the If condition activity. It says " Argument ‘Condition’:(2): error BC30452: Operator ‘=’ is not defined for types 'DataRow and 'DataRow#