select() with in()

I need some code to combine a select() with an in() and im not sure how to do that. I need something like this

select(users[site], [site] = in([_thisrow].[sites]))

That is not working and I have tried many variations but what I would like is the second part where the value of [site] = anywhere listed in the other field [sites].

Any ideas?

Solved Solved
0 2 537
1 ACCEPTED SOLUTION

Check the documentation for IN(), your syntax is incorrect. Try

SELECT(users[site],IN([site],[_THISROW].[sites]))

View solution in original post

2 REPLIES 2

Follow the syntax in the documentation:

IN([element], [List of elements]) 

IN() - AppSheet Help

Check the documentation for IN(), your syntax is incorrect. Try

SELECT(users[site],IN([site],[_THISROW].[sites]))