Repeat Expression Limitations

In Rule Machine 5.1, the repeat actions does not appear to support repeating a fixed number of times. What I want is "Repeat action 10 times, delaying 1 second between iterations". What it supports is "Repeat action 10 times every 1 second" without any exit condition. This means I now have to add an exit condition, so I usually then just switch to repeat..while. I don't quite get the usefulness of repeating an action many times at fixed intervals indefinitely -- that seems like an edge case. Can a "maximum # of repeats" be added? Then I could have "Repeat action 1 time, every 1 second, for a max of 10 iterations".

1 Like

The exit condition is 10 times. That should run 10 times and stop no need for an exit. I use this type of loop and it works for me. I really don't see what is different about these two statements.

1 Like

I concur. It's only if you left out the "10" that the once-per-second repeats would continue indefinitely.

Will there be a fix for this? In this example, I can confirm that it does have the behavior of repeating 5 times and then stopping, with a wait of 5 seconds between repeats. However, that's not what the wording says, so a wording fix here would be really helpful. The wording as is indicates "repeat the actions 5 times, then pause 5 seconds".

My wording suggestion would be, "Repeat 5 times, delaying 0:00:05 between repeats".

What makes this even more confusing is the "total", which for this example I would expect to say "0:00:25". I'm guessing the total is just showing the hours/minutes/seconds as a normalized time span, but it seems more helpful if it indicated the total amount of repeat time that's expected with the intervals x repeats.

1 Like

Okay, I finally get what you mean but I have never interrupted it that way.

Just know it's a loop and you can set it to repeat a certain number of times and you can set the time between repeats.

This is the first post I have seen in which it was interrupted that way, but I guess you could.

1 Like