Add constraints to 'Repeat n times' loop

Dm114

Well-known member
Would it be possible to add constraints to a 'Repeat n times' loop?

The other kinds of loops have their own conditions but not the 'n times' one.
It would prevent from including this loop inside a special 'If... Endif' statement.
 

Dm114

Well-known member
I've made a macro template for you that will repeat the loop n times but if it is not finished and the condition is false it will stop the loop.

You could greatly simplify your macro replacing the 'if' statement by a single 'Exit loop' with a constraint! It'll be easier to read and maintain in a more complex macro.

But my initial purpose wasn't to find a way to do so but to add the possibility to combine the 'Repeat n times' action with a condition (without adding any code inside the loop, like with other kind of 'Repeat...' loops).
 
Last edited:
Top