Jump to content
UBot Underground

Kepping track of duplicate items and adding them to a list


Recommended Posts

So I have a list that has a bunch of duplicates in it. I am getting rid of the duplicates and outputing the list to a variable.

 

But I would also like to output the duplicates to a variable so that one variable shows the list without duplicates and the other variable show the list of duplicates.

 

I know how to remove the duplicates just not how to show which duplicates were removed. I have tried using the subtract lists parameter, but that doesn't seems to work. Any ideas?

 

Example:

 

Original list....

 

dentist Plano

dentist Plano

best dentist Plano

dentist Dallas

best dentist Dallas

greatest dentist Plano

leading dentist Plano

supreme dentist Plano

supreme dentist Plano

premium dentist Plano

greatest dentist Dallas

leading dentist Dallas

supreme dentist Dallas

 

List with duplicates removed....

 

dentist Plano

best dentist Plano

dentist Dallas

best dentist Dallas

greatest dentist Plano

leading dentist Plano

supreme dentist Plano

premium dentist Plano

greatest dentist Dallas

leading dentist Dallas

supreme dentist Dallas

 

List of removed duplicates....

 

dentist Plano

supreme dentist Plano

Link to post
Share on other sites

add list to list, list from text, change text casing(%list, lower case)

 

then loop though compare list

 

if (contains(%list, text casing(list item to see if exists, lower case)))

than remove list item

else

nothing

 

save the list your looping through

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...