I am developing an ArcMap extension and I need to validate a particular case. I need to detect adjacents polygons that have one value equal, and the others not equal. I you take a look at the image, the yellow polygons are invalid and I need to inform the user. The sector is "Sector 2" on both polygons but, the next value is not the same (100 vs 200). If the sectors were different, the polygons would be valid. The violet and green polygons are okay, because for the violet one, the values are all the same and for the green one, the polygons are not touching.
The reason why I am doing this is because the user must use only one polygon for a same sector if the polygons are touching. So if all the values are the same, I can dissolve the polygons otherwise the dissolve won't work.
Is there a way to do this?