I am running an RPA script which loops through a CSV Arr. It uses ui.vision to process a series of variables and outcomes for each line
For one of the passes it stores a result from the browser window, then if the data in the $Results .includes the data in CSV array it then it follows the if, elseif and else routine.
It works fine for a single variable
{
“Command”: “store”,
“Target”: “${arr[${i}][9]}”,
“Value”: “Terminology”,
“Description”: “”
},
{
“Command”: “if_v2”,
“Target”: “${Result}.includes(”$Terminology")",
“Value”: “”,
“Description”: “”
},
My issue is some the the CSV arrays needs to contain multiple .includes
I have tried having the csv arr value
${arr[${i}][9]} = ${Result}.includes(“A”) || ${Result}.includes(“B”) || ${Result}.includes(“C”)
then
{
“Command”: “if_v2”,
“Target”: “${arr[${i}][(]}”,
“Value”: “”,
“Description”: “”
},
But this doesnt work, ui.vision runs but is not checking the $Results correctly and passes everything through the if,elseif, else.
Any ideas how I could including multiple includes without giving each one a separate value (one of the variables has 10 .includes others just have one)