Javascript command does not work in executeScript_Sandbox

 {
      "Command": "store",
      "Target": "test tim meyer",
      "Value": "e",
      "Description": ""
    },
    {
      "Command": "executeScript",
      "Target": "if (${e}.includes (\"tim\"))\n{\nreturn \"yes, it contains this string\";\n}\nelse\n{\nreturn \"no, it does not contains this string\";\n}",
      "Value": "Result",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${Result}",
      "Value": "blue",
      "Description": ""
    }

executeScript_Sandbox is giving error
[error] [Line 2]: undefined is not a function

1 Like