anh.nguyen
(anhnguyen)
September 14, 2023, 6:11am
1
Hello all,
I read dt excel and filter B column by BRV.
Each loop dt BRV
Loop BRV230906-0001
Assign Money = CurrentRow(“columnL”).tostring
I want to compare Money as picture
IF L19-L12 > L13 (continue) : 120,000,000-85,015,159=34,984,841 > 24,235,200
L19-L12-L13 < L14 (stop and Write into L14) : 120,000,000-85,015,159-24,235,200=10,749,641 < L14
Stop and Write into L14. Thank all
AlfredSzene
(Narcis Szene)
September 14, 2023, 6:14am
2
Hi! If you are working with data tables, you can achieve that kind of comparison using IF activities. you can access DT components by CurrentRow(“ColumnName”). Let me know if you still have questions.
supriya117
(Supriya Allada)
September 14, 2023, 6:17am
3
Hi @anh.nguyen
Try this:
Money = (CDec(row("L19").ToString) + CDec(row("L12").ToString)).ToString()
If (CDec(Money) > 24935200) Then
Assign row("L14") = "Continue"
ElseIf (CDec(Money) < CDec(row("L14").ToString)) Then
Assign row("L14") = CDec(Money).ToString()
anh.nguyen
(anhnguyen)
September 14, 2023, 6:28am
4
Hi @supriya117
I mean
If (CDec(Money) > L13 need continue assign Money = Money + CDec(row(“L13”).ToString)).ToString()
To compare next row L14,L15…?