How do I count number yes/no from multiple spinners selection?

Hello I would like some help please. I have 20 spinners with ElementsFromString Yes, No. How can I count the number of yes or no when the save button in the app will be clicked? Thanks!

Put all your spinner components into a list
for each loop on this list
if selection = Yes, then add 1 to a counter variable
counter provides the yes count, subtract this from length of list to get the no count

Thanks for the reply, I made this code but it does not seem to work. Am I doing something wrong?

Like this:

image

2 Likes

or you could make a procedure that outputs a list of the yes and no counts

1 Like

Thanks again..Sorry for the stupid question but where can I find the Spinner. Selection of component block?

From any components drawer

Thank you very much it works very well!!!

1 Like