Hi,
I have a data table DT1
DT1 :
I am using invoke code activity with following code :
DT1.AsEnumerable.ToList.ForEach(Sub(row)
row(“Comments”)= If(Math.Round(CDbl(row(“Amount”))) = Math.Round(CDbl(row(“AmountCalculated”))) And Math.Round(CDbl(row(“Amount2”))) = Math.Round(CDbl(row(“Amount2Calculated”))),“Verified”,“Please Check” )
the above code provides output as DT1.
I need a solution which compares (‘column B’ with ‘column C’) and (‘column D’ with ‘column E’) and if we compare any negative value with 0 (Ex : -19.23 with 0) the comment must be written as ‘Verified’ instead of ‘Please check’
Expected solution :
Thanks in advance