Comparing Lists
Options
![Michael Hartman](https://us.v-cdn.net/6037124/user_avatars/3516860.jpg)
Michael Hartman
Member ✭
Hey, so I have a data base table that has about 70 boolean values. How would I go about comparing two entries and returning a score of how many values match up. So if the first entry has lines 1,3,5,7, and 9 true and the second entry has lines 2,3,5,6,7, and, 9 true then I would get a return value of 4 because four of the line items have the same value.
Comments
-
Example, like in a dating app, I want to compare two lists of interests and only show data if two individuals have enough interests that match up.
-
What a cool problem! I made a demo with a method that might save you some time: https://www.loom.com/share/e9c23764f3624f3cb4d2857f6a5dabc8 Let me know if it looks like it approximately fits your use case?
-
Yes that's perfect, thank you! I figured on using a loop and counter but I didn't know about the entries filter in Xano.
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