Jump to the next different row after compare rows same data

Hello all,

In this case when loop 3row DLV006 (loop small). I will compare currentRow & nexRow in each loop data. When see 1st & 2nd same row will do action1. And continue loop row2 (loop small). β†’ It make wrong

i want after checking for the same rows, next step it will jump to the next different row (can jump row3)
image

Please help me
DLV030.xls (54 KB)

1 Like

Sorry I explant more:

In loop small I need compare currentRow & nextRow and step by step check all rows at DLV007 have same data at Group 1-5 & SPrice
Ex: Row1 & row2 same data β†’ action1
Row3 β†’ action2
Row4 & row5 same data β†’ action1

My problem in Xaml file, it just undersand row1&2 to action1 next row3 action2 but see row3,4 it wrong
DLV030.xls (57 KB)

only the immediate row need to be compared or all the rows with same data?

Hi bro, all the rows with same data or can step by step check row 1=2, 2=3, 3=4, 4=5
DLV015.xaml (882.7 KB)

what if you only have 3 rows? What do you compare last row with?

row1 compare with row2
row2 compare withrow3
row3 compare ???

Because last time i learn other master on forum, condition index data
idx<DataTableDLV030_Phu.Rows.Count-1

So I think when row3 it stop compare and action2 :slight_smile:

try this
DLV015 - Copy (3) (1) (1).xaml (929.2 KB)

really thank you very much, i took a long time for it but thanks to you it’s done. thank you

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.