Get values from one list that are not in the other

Good morning. I need help with this, I thought it would be very easy but I can’t find a simple solution.
I have two lists A and B
A = [1,2,3,4]
B = [1,2]
How do I in Coda get a list C that is: “values ​​in A that are not in B”
C = [3,4]

Here you go!



this is a variation on Troy’s contribution:

Same functions, different order and thus syntax, this is a pattern I apply often, evaluate the currentvalue via a function, in this example contains() and the function Not().


Thank you very much you two. I already knew that I was having a lot of trouble trying to use foreach(), :sweat_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.