Nested Variables or Variables Inside Variables Requested

Hello - I am also wondering if there has been any update or perhaps what the timeline is around supporting variables inside variables e.g. to reference TestVar1 using {TestVar{NumVar}}. I am often working with an unknown number of variables in a loop that I am running so I can’t reference them in my CSV without a nested variable unless someone else knows a workaround.

Thanks!

I need the same checking existence of dynamic variable names!

I can create already a dynamic named variable but I can’t test it if I don’t know the name:

You can have arrays with the execute script command:

In this example we first create the array “a” and then access the 2nd element:

{
  "Name": "array",
  "CreationDate": "2019-10-19",
  "Commands": [
    {
      "Command": "executeScript_Sandbox",
      "Target": "return new Array ('cat','dog','fish','dog','deer','frog','whale','dog','seal','horse','elephant')",
      "Value": "a"
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return ${a}[2];",
      "Value": "var"
    },
    {
      "Command": "echo",
      "Target": "var=${var}",
      "Value": ""
    }
  ]
}
1 Like