If you enumerate all the sections and put them in an array, you can then use the IsInArray() UDF to compare arrays. Ditto for keys. Comparing key values though do get a bit more involved.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.