JFetz2191
JFetz2191

Reputation: 139

How to Count all true and false value in every checkbox

:) Sorry for the last question :)

How would I actually count all true and false value of every checkbox and print it This is the GUI I made..

GUI

For example, on John's answer's the Items 1,2 and 5 are correct and 3 and 4 are wrong.. I want to print the all correct in the Score textarea and the wrongs are in the Wrongs textarea.. I want to count all the Corrects and wrongs of every people.. and print it

And also Count all the corrects in every items and print it below ..

the True value of the checkbox are corrects and the false value or the unchecked value of the checkbox are wrongs

this is Where i get the logic

logic

Upvotes: 1

Views: 557

Answers (1)

Peter Lawrey
Peter Lawrey

Reputation: 533640

You need to place the check boxes for a individual in an array or collection.

Iterate over them and count the number of true values.

Upvotes: 1

Related Questions