Wait⊠thatâs not what you want
We have three lists: a (the longer list), b (the smaller list) and c (now empty, result will be here).
For each list item in a:
If not ((is list item? of list b [get item])) then {add item to list c
}
if the order of his list is different, the result will not be (watermelon, beer)
exemple:
List2: beer, watermelon, grapes, pears, apples
result: pears,apples
Ok so I solved this. I actually went one step further and made it full duplex, so that if there is something in list2 not in list1 it will e identified.
I tried a few different ways, but this was the only way it would actually work. I have created two lists and the result I am looking for is (watermelon beer cheery). Watermelon and beer is unique in list2 and cherry is unique in list1. Lets see how I got it.
Step 1
You have List1, List2, and an Empty Resulting list. Create two other empty lists, which we will use as the actual lists to manipulate.
Create a function to do the analysis. and copy the two current lists to their temporary lists.
Step 3
Create a for loop. We are going to step through list1a items and see if they are in list2. But we are going to analyse list2b so we can manipulate it.
Step 4
Lets setup a local value for the index number. Then each item in list1 is looked up in List2b. If it exists it sends a True. Based on the true, we then get the index value from that item found in the list. Once we have the number, we then remove that index number from the list.
I tried the above blocks for lists of NUMBERS but they dont seem work and remove single digit numbers if a double digit number with that digit is present in it. For example 2 will be removed if 12 is present in the other list.