Break out of repeat
Leaves the innermost Repeat loop and carries on after it.
Break out of the loop
Keyboard Maestro: BreakFromLoop
Details #
Stops the surrounding Repeat loop right away. The macro continues with the step after the loop. If loops are nested, only the innermost one ends.
It works through If and Group, so put it in a then list behind a condition.
Stop at the first match
Do
- Set names to “Ada”, “Grace”, “Linus”
- Repeat for each name in names
- If name is “Grace”
- Break out of the repeat
- Show “Stopped at {{ name }}”
Parameters #
This step takes no parameters.
Examples #
Give up after three tries
Do
- Repeat 10 times
- If try is at least 3
- Break out of the repeat