> If my profile asks for "tag4,tag5,tag6", tasker should return "2" and then I'll use READ LINE to get the full line to split and process the text to get "dolor sit amet"
- Read file To: %arr (entire file NOT just one line)
- Variable set %ret TO: (a actual return, IE press the return on the keyboard)
- variable split %arr / Splitter: %ret
- Variable set %index to %arr(#?tag3)
Check the userguide / variables...
From the userguide;
%arr(#?b/c)
A comma-separated list of the array indices (lowest to highest) with matching values, or 0 if none match (2,3 in the example)
One correction on this. You need to Make you search query like this *tag3*/*tag4*/*tag5*
> - Read file To: %arr (entire file NOT just one line)
> - Variable set %ret TO: (a actual return, IE press the return on the keyboard)
> - variable split %arr / Splitter: %ret
> - Variable set %index to %arr(#?*tag3*/*tag4*/*tag5*)
>
I had misunderstood what the final goal was. I thought you just wanted the line #. To get the data attached to the tag then I would recommend Rayson's Variable search/replace method..