Memento Loop in Tasker

32 views
Skip to first unread message

Chris Tracey

unread,
Jul 24, 2017, 6:30:26 PM7/24/17
to Tasker
Hello

I'm having a problem with implementing a task which runs a loop to load values into a Memento database.

I've attached a screenshot of the task, but the basic list of actions is:

1) Set a numerical variable called numvar to 0;
2) Set a text variable in textvar
3) Add 5 to the numvar. This action is labelled loopstart
4) Flash up numvar
5) Add the entry to the Memento database - I've also attac hed a screenshot for this step;
6) Write numvar to a text file;
7) Goto Loopstart while numvar<50;
8) End the routine.


Now the entries are saved to the Memento database, but numvar is equal to five in all of the entries. There are a couple more pieces of information which make this quite strange:

1) The flash in Step 4 shows that numvar is increasing in steps 5;
2) The write to a text file works i.e it contains values 5, 10, etc;
3) I can write to Memento in tasks which don't use loops. For example I have a task saves my location each time I walk 10 steps and that works as intended i.e the location captured in memento changes as I move around;
4) I rewrote the task so that it ran without the loop i.e set numvar, save, increment numvar by 5, save to memento again. That worked as intended.


Does anyone have any ideas what might be happening here? It seems very strange that the loop works, that the write to file works, the looped variable saves to memento, but that it isn't being incremented.

Many thanks in advance for all your help. Here's hoping for a "how did I not realise it was that solution". :)


Chris


Screenshot (11_03PM, Jul 24, 2017).png
Screenshot (11_18PM, Jul 24, 2017).png
Reply all
Reply to author
Forward
0 new messages