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
Explorans limites defectum
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
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Z-Wave Device List simplextech 2 1,627 02-01-2020, 07:24 AM
Last Post: simplextech
  Pause / Resume Triggered or Scheduled Actions from the Interface Viewer gReatAutomation 2 2,334 10-30-2019, 01:38 PM
Last Post: gReatAutomation
  Question on Parsing a String in a CML Macro kblagron 2 1,906 06-18-2019, 06:21 PM
Last Post: Dean Roddey
  Deleting Drivers From AI "Add Drivers List" kblagron 1 1,218 05-16-2019, 09:18 AM
Last Post: Dean Roddey
  Drivers and Hardware List wusupwchu 3 2,393 02-20-2018, 04:35 PM
Last Post: Dean Roddey
  Some workarounds to copy/paste Actions RichardU 3 2,383 01-19-2018, 09:34 AM
Last Post: Dean Roddey
  Regular Expersions in Actions znelbok 1 1,733 12-26-2017, 05:48 PM
Last Post: Dean Roddey
  Saving Global Actions RichardU 1 1,646 12-20-2017, 11:18 AM
Last Post: Dean Roddey
  where did the list of supported devices go? indygreg 8 6,835 06-08-2017, 02:21 PM
Last Post: Dean Roddey
  Static List Browser and Parameters zra 15 9,457 04-12-2017, 02:44 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)