A1: Variable Set [ Name:%arr To:a,b,c,d Do Maths:Off Append:Off ]
A2: Variable Split [ Name:%arr Splitter:, Delete Base:Off ]
A3: For [ Variable:%var Items:d,e ]
A4: Flash [ Text:Match found for: %var
Index position: %arr(#?%var) Long:On ] If [ %arr(#?%var) > 0 ]
A5: Flash [ Text:NO match found for %var Long:Off ] If [ %arr(#?%var) eq 0 ]
A6: End For
Array Test (525)
A1: Variable Set [ Name:%arr To:a,b,c,d,d,d Do Maths:Off Append:Off ]
A2: Variable Split [ Name:%arr Splitter:, Delete Base:Off ]
A3: For [ Variable:%var Items:d,e ]
A4: Flash [ Text:Match found for: %var
Index position: %arr(#?%var) Long:On ] If [ %arr(#?%var) > 0 ]
A5: Flash [ Text:Multiple matches found for: %var
Index positions: %arr(#?%var) Long:On ] If [ %arr(#?%var) ~ *,* ]
A6: Flash [ Text:NO match found for %var Long:Off ] If [ %arr(#?%var) eq 0 ]
A7: End For
Hope this helps.
Isn't this just %arr(#?%test)?
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.