# Function that shows 2 users that match

**URL:** https://community.glideapps.com/t/function-that-shows-2-users-that-match/60141
**Category:** Ask for Help
**Created:** [April 4, 2023, 4:26pm UTC](https://community.glideapps.com/t/function-that-shows-2-users-that-match/60141 "2023-04-04T16:26:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jonassweden](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jonassweden](https://community.glideapps.com/u/jonassweden)
#### Post date: [April 4, 2023, 4:26pm UTC](https://community.glideapps.com/t/function-that-shows-2-users-that-match/60141/1 "2023-04-04T16:26:00Z")

</div>

Hey!

I am trying to build a function that presents whether two users match.

User 1 owns a Blue Landrover with 5 seats and is looking for a Red Chevrolet with at least 4 seats.  
User 2 owns a Red Chevrolet with 2 seats and is open to anything.

User 1 visits a page where User 2 has their ad posted and should see that 2 out of 3 criteria are met.

- I have User table with Row owners.
- The information about what they own and what they are looking for, should be in the Users table but it’s not necessary.
- The information is presented in the Public table

Styling

 ![Skärmavbild 2023-04-04 kl. 18.14.37](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/a/5a6122f55ef8f3ecc3a2a97edb4ccd4823a0b7d5.png)

If\_Column

 ![Skärmavbild 2023-04-04 kl. 18.15.57](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/2/d29988402014326f28c411af7b316dbb32e7c571.png)

It works well when I have all the data without Row Owners in the User table, but I am having problems getting the function to work in the Public table. Any quick fix?

/ Jonas
