Using recursive loop to remove rows that match certain rules.
On each recursive iteration, Rule 1 is tested. If a pair of rows match the rule, they are removed. If no rows match rule 1, then Rule 2 is tested. Again if a pair of rows match the rule they are removed.
If there is only 1 row remaining, the recursive loop ends. If no rows were removed in the iteration the recursive loop ends.
This is then applied by a group loop to each group of rows.
See Forum post link for more details.
@takbb Brian Bates 25 Nov 2024