when you work with foundsets you often deal with find().
According to the documentation one can use an array of values to use the ‘IN’ statement.
Like:
foundset.user_id = [222,534,464]
works fine.
The opposite, i.e. ‘NOT IN’ is not possible, or I can’t find the right syntax for it?
foundset.user_id = ![545,687,876] → does not work
So I use a query → loadrecords(query) instead. Or is there another way?
I was in the same confusion few days back, on which i had two options to achieve. I am sharing those below. I used the second one because first one might take a bit more time as it had to do a search and then invert the foundset.