I looked in the forum and it seems that for the last 4 years, there’s been (a few) requests to compare lists. It’s a little weird that there is no way to do this. There are some suggestions on how to compare for “true”, but I can’t find an efficient way to do this for “false”.
That is, I have a list of options I need to compare and execute a workflow “only when” they don’t match. No simple way to do this as, while there is a “contains list”, there is no “does not contain list”.
I ended up doing a “format as text” after sorting, which seems insane to me.
To be clear, there is no “is” or “is not” for list comparison. There is a “contains list” but no “does not contain list”. This makes it tricky to use in a workflow with “only when” .
I think there should be a way to compare lists for equality or inequality, but meanwhile, the above works if someone needs it.
Yeah, that was me, @RPSM. Sorry about that, but I wasn’t sure I had thought it through correctly, so I deleted the reply. I was just about to post something similar again, though, and here it is.
To the best of my knowledge, what you are looking for (an easy way to see if two lists match) doesn’t exist. I could be overthinking things here, but it seems like having the first part of a condition check to see if a count of the items in the first list is not equal to a count of the items in the second list would be ideal in your case because the condition would not need to progress if that is true, and your workflow would run. Then, add an or and check to see if the counts of the items in each list are equal and a count of the intersect is not equal to a count of one of the lists.
Ah, OK you disappeared so quick I didn’t get to understand it
I used the minus in my solution. If the counts don’t match or if after removing the items in the second list, the result isn’t 0, then they aren’t the same (it’s an option set, so the possibilities are limited to the same for both).
I think that yours would also work, if the counts don’t match or if the intersect of the two lists doesn’t equal the count of either list, then they don’t match.
Would be nice if Bubble would focus on features like this (list comparisons), rather than silly AI roadmap items that are Investor focussed. (@fede.bubble)