How to count number of Doc users

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?

As far as I know there is no direct way to do this, but a table with one row for each user can be useful for many cases, e.g. to assign roles or teams. In this case, you would only have to count the rows.

thanks. I actually have such table. didnt think of that. will try it out

1 Like