I’m creating a voting booth where there are 2 options to vote for. I want to display the winner only when everyone in the doc has voted, this is to make sure that the results are displayed only after everyone cast their vote.
I’m trying to find a way to count the number of doc users, and then check if the number of votes are equal to the number of users, and if so, display the voting results & winner.
is there a way to do that?