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]
Thanks
Here you go!
[A].Filter(Not([B].Contains(CurrentValue)))
4 Likes
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()
.
4 Likes
Thank you very much you two. I already knew that I was having a lot of trouble trying to use foreach(),
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.