How to compare items in repeating group

Hi. I don’t know how to compare things in same repeating group.
Is there any way to compare item with next cell’s item in repeating group?
I tried to use current cell’s index but i can’t find out.

What do you need to compare?