Arrays Overlapping outside of Query
Options
Gi Ma
Member ✭
Hi!
I saw that Xano has the Query Operator OVERLAPS.
However, in the normal "if"-statement (not in a db-related query, but simply an "if" condition), this OVERLAPS doesn't exist.
How can one compare two arrays to each other and find out whether or not there is any matching value between the entries of both arrays?
As in:
array1=[1,2,3]
array2=[3,4,5]
the IF would revert as TRUE because the value 3 is in both.
What's the best way to compare two arrays for any common value?
Best Answer
-
I've found this as an interim solution, but not sure if that's the best way to do it?
Answers
-
That is how I would do it.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback