How do I make it so when a list contains all of the items from another list, it does something?
Offline
Wait, nevermind!
Keep this topic open, just for a little bit though.
Use this for anyone needing this script:
<[List1] contains (item (length of [List2]) of [List2]) >
It should work
Last edited by samurai768 (2010-06-25 20:44:22)
Offline
Hm... I'm pretty sure that would only check to see if the last item of both lists are the same.
What I think you'd need is this:
Essentially, it cycles through all the items of list 2 and sees if they're in list 1. If it's not, a variable is set to 0. If the variable is 0, there was an item which was in list 2 but not list 1.
Of course, this only works 1 way - for instance, list 1 can have items not in list 2 and the script won't detect that.
Offline