I cant seem to get how rpa translates javascript so i find hard times into make javascript work.
I have an array with variable lenght as i add and delete elements and at certain times i need to know how many elements are in the array, in pure javascript is killing easy numberofitems = array.lenght and bang but in rpa i have tried this both options and both returns “undefined”
{
“Command”: “executeScript_Sandbox”,
“Target”: “var index = ${array}.lenght; return index”,
“Value”: “elements”,
“Description”: “”
},
{
"Command": "executeScript_Sandbox",
"Target": "return ${array}.lenght",
"Value": "elements",
"Description": ""
},
thank you