Compare Two arrays and replace duplicatet

hi all, i need to compare two string arrays and replace duplicates with anything in a new array.
Example:
Arr1={“one”,“Two”,“Three”,“Four”}
Arr2={“Two”,“Five”,“one”,“Three”}
ResultArr={“2”,“X”,“1”,“3”}

Regards

Main.xaml (10.7 KB)

Refer it hope it will help…

1 Like