Cyclic triggering event

Discuss RoboTask here

Cyclic triggering event

Postby tcarvalho » Fri May 15, 2020 1:10 pm

Is there a way to have the cyclic triggering event stop after successfully completing a task X number of times?

For example if I want my task to complete 100 times automatically (so not having to manually run the task each time) and then stop after successful number of completions; is that possible to script via the current tools provided? If not then I'll post this as a suggestion to incorporate setting a completion counter for the cyclic trigger specifically.

Thanks all!
Posts: 11
Joined: Mon Feb 24, 2020 5:46 pm

Re: Cyclic triggering event

Postby Oleg » Fri May 15, 2020 2:09 pm

You can make some global counter. When the counter will be greater than 100 you can disable the task.
After your steps put Increment variable action to increment the counter
Use Disable Task action
When you disable the task RoboTask stops all triggers of the task and the task can be running manually only.

Algorithm will be similar to this:
Code: Select all
Do something
Increment variable MyCounter
if {MyCounter} > 100 then
   disable task (this task)
end if

Of course variable MyCounter must be global variable and set it to 0 before you start cyclic trigger
Oleg Yershov
Site Admin
Posts: 2555
Joined: Thu Jan 01, 1970 1:00 am

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 18 guests