2 days? What automation app do you use before?
Debug Dialog is the element to check all variables' value at certain point. To add it, add condition > new > find Debug Dialog. The usage just simple, put it after the place you wanna check the variable. Execute the flow and you will hit a message dialog showing every available variables for that flow. You can see the value of the global_x1 then, or even edit its value. In this case, you need to put it after your script.
If you get 2, 3, 1; means the removeDuplicateElements() works properly. Something is wrong in your script. Maybe misstyped? Try to copy your own script from your post before
Code: Select all
global_x2=newList(7350474, 7350475, 1608847, 1618847, 1618846, 1608846, 7350473, 1628846); //eight numbers
global_x3=newList(1124582, 7344998, 7345098, 1134582); //four numbers
global_x4=newList(1608847); //notice this number is a duplicate in global_x2[2]
global_x1=newList();
//combining all elements in global_x1
global_x1=addAllElements(global_x1, global_x2);
global_x1=addAllElements(global_x1, global_x3);
global_x1=addAllElements(global_x1, global_x4);
Paste it in new flow, action script. Then add the debug dialog to it.
Next add action script again after the first debug dialog, and put the last line for removing duplicate
Code: Select all
removeDuplicateElements(global_x1);
Put another debug dialog at it. Check value of global_x1 at each debug dialog.