Array Squash with %evtprm()

62 views
Skip to first unread message

John W.

unread,
Dec 25, 2017, 1:20:59 PM12/25/17
to Tasker
Array process:squash isn't squashing the %evtprm array. I'm not sure if it is limited to my scenario. For the task in which it is not squashing, the %evtprm areay is populated by the notification event (which in practices tends to have multiple empty properties).

Any thoughts from Pent and/or helper elves?

Rich D

unread,
Dec 25, 2017, 3:45:44 PM12/25/17
to Tasker Google Groups Post


Array process:squash isn't squashing the %evtprm array. I'm not sure if it is limited to my scenario. For the task in which it is not squashing, the %evtprm areay is populated by the notification event (which in practices tends to have multiple empty properties).

Any thoughts from Pent and/or helper elves?

Could you post a example of the unsquashable array?

John W.

unread,
Dec 25, 2017, 4:58:47 PM12/25/17
to Tasker
TuneIn Radio,WGBH,Opening…,%evtprm4,%evtprm5,%evtprm6,transport,false

John W.

unread,
Dec 25, 2017, 5:55:40 PM12/25/17
to Tasker
Or

System UI,Cable charging,Charging: 23%,%evtprm4,%evtprm5,%evtprm6,sys,true

Rich D

unread,
Dec 26, 2017, 6:07:16 AM12/26/17
to Tasker Google Groups Post


System UI,Cable charging,Charging: 23%,%evtprm4,%evtprm5,%evtprm6,sys,true


Ahh, yes. I have never fully understood this. Hopefully Pent can shed some light on it. The same thing can be seen here. 
Squash (409)
A1: Array Set [ Variable Array:%arr Values:1,,,,5,,,,,,,,,,,, Splitter:, ] 
A2: Flash [ Text:%arr() Long:On ] 
A3: Flash [ Text:%arr(#) Long:On ] 
A4: Flash [ Text:Arr2 is set Long:Off ] If [ %arr2 Set ]
A5: Variable Clear [ Name:%arr3 Pattern Matching:Off Local Variables Only:Off ] 
A6: Flash [ Text:%arr() Long:On ] 
A7: Flash [ Text:%arr(#) Long:On ] 


This will flash 

<1,%arr2,%arr3,%arr4,5>

<5>

<Arr2 is set>

So it will 'set' 
%arr2 = %arr2
%arr3 = %arr3
%arr4 =%arr4
Wich makes them unsquashable 
So why are these values set? I would expect them to be 'unset'
And why does it not set values greater then %arr5 

<1,%arr2,%arr3,%arr4,5>

<4>

So when I clear %arr3 It will still show in the array list but It will now be 'Unset' and sqashable. (just %arr3 is sqashable) 


Reply all
Reply to author
Forward
0 new messages