Check with 2 items from a list!

Hi, I’m trying to do a check with 2 items from a list!
is the following situation, I have a question (VOTE) of ‘YES’ AND ‘NO’ and when the person votes, they create a collection in Firebase within this question with the ID and if they voted YES/NO how do I double-arrive? I managed to do it just to find out if the person voted that this formula is: EXACTLY_ONE(data.votes1.documents, ==

How do I check a Boolean or a String to know which option the person chose