5. Repeated Iterations with Conditions