Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String list in actions
#1
I am using the HTTP Get driver for action and using the option of passing in parameters in the url to take actions based on values.

?1=<string1>&2=<String2>&3=<String3>

The above will give me an action parameter 2 of <string1> <string2> <string3> - a string list of sorts.

How do I extract the strings into separate variables using the commands available for local variables in the action interface?

GetSubStr is an option, but the size of each of the strings will vary so I would need to dynamically assign the start index and length for the command.

Not sure how to do this
Mykel Koblenz
Illawarra Smart Home
Reply
#2
Use GetNthToken to break out the values.
Dean Roddey
Software Geek Extraordinaire
Reply
#3
Thanks, GetNthToken is not listed in the help docs - another one to add to the list.
Mykel Koblenz
Illawarra Smart Home
Reply
#4
It's an action command so it's documented under the /Reference/Actions section. It's under the System target. BTW, if you select an action in the action editor and hit F1, it'll take you to the documentation for that action.
Dean Roddey
Software Geek Extraordinaire
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  where did the list of supported devices go? indygreg 8 1,249 06-08-2017, 02:21 PM
Last Post: Dean Roddey
  Static List Browser and Parameters zra 15 1,869 04-12-2017, 02:44 PM
Last Post: Dean Roddey
  Saving and Loading String Lists pjgregory 5 702 03-15-2017, 08:33 AM
Last Post: Dean Roddey
  Zone list in ELKv2 driver George M 7 1,387 01-02-2017, 11:19 AM
Last Post: Dean Roddey
  Cant use fields of Denon driver in global actions George M 4 1,067 12-18-2016, 06:21 PM
Last Post: Dean Roddey
  Bug with the Echo and nested global actions? dlmorgan999 2 748 12-18-2016, 01:07 PM
Last Post: dlmorgan999
  Sonos Favorites in List Browser kblagron 10 1,613 12-18-2016, 11:00 AM
Last Post: Dean Roddey
  Template actions? dlmorgan999 3 750 11-02-2016, 05:59 PM
Last Post: Dean Roddey
  Global actions in 5.0, or what am I doing wrong pasha 9 875 09-26-2016, 08:03 PM
Last Post: pasha
  my running post 5.0 wish list jkmonroe 15 1,267 08-06-2016, 09:42 AM
Last Post: jkmonroe

Forum Jump:


Users browsing this thread: 1 Guest(s)