How to sort and compare list

uiautomation

#1

Hi guys,
I am having list of two strings i need to check whether it contains string or not (for that i used intersect but it is not working) and also i have sort it before…list.xaml (8.3 KB)


#2

I haven’t used Intersect before but you can achieve the same result with a for each loop.

For each item in List1
if List2.contains(item)
Add to new list
Next

Just watch out for differences in cases.