It depends on what repeats. If the group is repeating, you probably want to iterate on the group. If it is just the segment that is repeating, you probably want to iterate on the segment. And, it can be both. Remember, curly braces, {}, mean repeating.
I am looking in Cloverleaf at the ADT_A01 2.6 variant. I am looking at it in the xlate configurator.
In group 0, you can see that the group doesn’t repeat but the NK1 segment repeats. You won’t need to iterate on the group to get any of the segments but you will need to itereate on the NK1 segment to see all the NK1 segments. The same is true in group 3 and the AL1 segment.
But if you look at group 4, you see that the whole group repeats. I am looking at group 6 and the IN1 segment. The group repeats but the segment doesn’t. That is, you have to iterate on the group but not on the segment to get all the IN1 segments.
Also in group 6, look at segment IN3. Remember, group 6 repeats. But segment IN3 also repeats. Here, you have to iterate on the group to get all the groups IN1 [IN2] [{IN3}] [{ROL}]. But in each group, you have to iterate on the IN3 segment to get all the IN3 segments.