Counting checkbox interactions
Can anybody suggest the best way of having a list of checkboxes and displaying a running score based on the number of boxes ticked?
I suspect there is a very simple answer to this but I am struggling to get my head around it.
My initial thought was to create a number variable which would increase by one everytime a check box was in its selected state i.e. ticked and would reveal an image e.g. 6/10 to match the relevant total. Unfortunately although I can get the variable to increase by one when selected, I can't get it to decrease by one if subsequently deselected. Also each check box will obviously increase by 1 indefinately each time it is ticked (although I could add a true/false variable to deal with that particular problem).
As always any suggestions are very much appreciated.