Looping a task for several times and then stop.

2,912 views
Skip to first unread message

Alexandr

unread,
Mar 10, 2011, 7:17:31 PM3/10/11
to Tasker
Hi folks!
I've been using Tasker for a while now (3 weeks aproximately) and I
find it incredibly useful. I've figured out how to do lots of things
with it by myself, but there's one that I've got no idea how to do.
I've already searched the web for the answer, but nothing found.

What I wanna do is to loop a task for several times (e.g. 5 times) and
then stop it. I've tried to achieve this with the 'wait' task at the
end and 'go to action=1' tasks, but if I set it that way it will never
stop.

This task I want to loop is not scheduled but triggered by the camera
button.

Thanks in advance.

Pent

unread,
Mar 11, 2011, 3:32:25 AM3/11/11
to Tasker
> I've been using Tasker for a while now (3 weeks aproximately) and I
> find it incredibly useful. I've figured out how to do lots of things
> with it by myself, but there's one that I've got no idea how to do.
> I've already searched the web for the answer, but nothing found.
>
> What I wanna do is to loop a task for several times (e.g. 5 times) and
> then stop it. I've tried to achieve this with the 'wait' task at the
> end and 'go to action=1' tasks, but if I set it that way it will never
> stop.

http://tasker.dinglisch.net/userguide/en/flowcontrol.html

Example:

Variable Set %STARTTIME, %TIMES
DO SOMETHING HERE
Goto 2 if [ %TIMES - %STARTTIME < 5 ]

Loops for 5 seconds.

Pent

Alexandr

unread,
Mar 11, 2011, 4:14:02 AM3/11/11
to Tasker
Thank you! It works perfectly.
Reply all
Reply to author
Forward
0 new messages