Stuck & need assist on how to compare values in existing documents

Resolved

Hiya, I've been stuck on this one for over a week, tried a ton of things but can't figure out a way to use Action Conditional logic to verify if an existing document exists.

Problem: I would like once I click a user in a list, to search through a list of chats where if User A & User B match an existing document, not to create a new one but open the existing one

If they are no existing documents with these users, then create a new one

THis logic only 1/2 works as it grabs the bottommost document to compare and not all.. Where am I going wrong here? Thx for any help



1
21 replies