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
  Drivers and Hardware List wusupwchu 3 329 02-20-2018, 04:35 PM
Last Post: Dean Roddey
  Some workarounds to copy/paste Actions RichardU 3 347 01-19-2018, 09:34 AM
Last Post: Dean Roddey
  Regular Expersions in Actions znelbok 1 232 12-26-2017, 05:48 PM
Last Post: Dean Roddey
  Saving Global Actions RichardU 1 223 12-20-2017, 11:18 AM
Last Post: Dean Roddey
  where did the list of supported devices go? indygreg 8 2,308 06-08-2017, 02:21 PM
Last Post: Dean Roddey
  Static List Browser and Parameters zra 15 3,276 04-12-2017, 02:44 PM
Last Post: Dean Roddey
  Saving and Loading String Lists pjgregory 5 1,239 03-15-2017, 08:33 AM
Last Post: Dean Roddey
  Zone list in ELKv2 driver George M 7 2,227 01-02-2017, 11:19 AM
Last Post: Dean Roddey
  Cant use fields of Denon driver in global actions George M 4 1,646 12-18-2016, 06:21 PM
Last Post: Dean Roddey
  Bug with the Echo and nested global actions? dlmorgan999 2 1,113 12-18-2016, 01:07 PM
Last Post: dlmorgan999

Forum Jump:


Users browsing this thread: 1 Guest(s)