I am running on a Motorola Droid Turbo 64GB under 4.4.4.
I think it is pretty common to have two states in Tasker and you want to toggle between them. Something like ...
AAAA1
A1: Flash [ Text:A1 Original Long:Off ]
AAAA2
A1: Flash [ Text:A2 Original Long:Off ]
A2: [X] Flash [ Text:A2 Changed Long:Off ]
AAAAtoggle
A1: If [ %AAAA ~ a2 ]
A2: Variable Set [ Name:%AAAA To:a1 Do Maths:Off Append:Off ]
A3: Perform Task [ Name:AAAA1 Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
A4: Else
A5: Variable Set [ Name:%AAAA To:a2 Do Maths:Off Append:Off ]
A6: Perform Task [ Name:AAAA2 Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
A7: End If
Simple little toggle of two simple Flash messages.
Now DisableAAAA2.A1 and Enable AAAA2.A2
Running AAAAtoggle displays AAAA.A1 and not AAAA.A2. I could find no way to get it to recognize the change in AAAA2 unless I reloaded Tasker.
I changed it back to Enable AAAA2.A1 and Disable AAAA2.A2 and could find no way to have Tasker recognize the changed code. I tried it again 10 minutes later and it was (apparently) recognized.
You are debugging something ... you make a change ... the error is still there ... you assumed that the change was actually made. What in fact you were doing was rerunning the same unaltered version.
Since it runs correctly if executed from the standalone task I assume this "feature" is in the Perform Task action.
... Thom
I think it is pretty common to have two states in Tasker and you want to toggle between them. Something like ...
AAAA1
A1: Flash [ Text:A1 Original Long:Off ]
AAAA2
A1: Flash [ Text:A2 Original Long:Off ]
A2: [X] Flash [ Text:A2 Changed Long:Off ]
AAAAtoggle
A1: If [ %AAAA ~ a2 ]
A2: Variable Set [ Name:%AAAA To:a1 Do Maths:Off Append:Off ]
A3: Perform Task [ Name:AAAA1 Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
A4: Else
A5: Variable Set [ Name:%AAAA To:a2 Do Maths:Off Append:Off ]
A6: Perform Task [ Name:AAAA2 Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
A7: End If
Simple little toggle of two simple Flash messages.
Now DisableAAAA2.A1 and Enable AAAA2.A2
Running AAAAtoggle displays AAAA.A1 and not AAAA.A2. I could find no way to get it to recognize the change in AAAA2 unless I reloaded Tasker.
I changed it back to Enable AAAA2.A1 and Disable AAAA2.A2 and could find no way to have Tasker recognize the changed code. I tried it again 10 minutes later and it was (apparently) recognized.
You are debugging something ... you make a change ... the error is still there ... you assumed that the change was actually made. What in fact you were doing was rerunning the same unaltered version.
Since it runs correctly if executed from the standalone task I assume this "feature" is in the Perform Task action.
... Thom
Last edited: