Jump to content
UBot Underground

Everything BUT the common things between two lists?


Recommended Posts

This is simple to do, although requires two extra lists than the original:

 

clear list(%mylist_A)
add list to list(%mylist_A, $list from text("1,2,3,4,5,6,7,8,9,10", ","), "Delete", "Global")
clear list(%mylist_
add list to list(%mylist_B, $list from text("2,3,4,5,6,7,8,9,10,11", ","), "Delete", "Global")
clear list(%mylist_C)
add list to list(%mylist_C, $subtract lists(%mylist_A, %mylist_, "Delete", "Global")
clear list(%mylist_D)
add list to list(%mylist_D, $subtract lists(%mylist_B, %mylist_A), "Delete", "Global")
add list to list(%mylist_C, %mylist_D, "Delete", "Global")

 

...but it keeps things easy to understand and follow in the DEBUGGER.

  • Like 1
Link to post
Share on other sites

Here is a simpler one, indeed - much better!

 

clear list(%mylist_A)
add list to list(%mylist_A, $list from text("1,2,3,4,5,6,7,8,9,10", ","), "Delete", "Global")
clear list(%mylist_
add list to list(%mylist_B, $list from text("2,3,4,5,6,7,8,9,10,11", ","), "Delete", "Global")
clear list(%mylist_C)
add list to list(%mylist_C, $subtract lists(%mylist_A, %mylist_, "Delete", "Global")
add list to list(%mylist_C, $subtract lists(%mylist_B, %mylist_A), "Delete", "Global")

  • Like 1
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...