Assigning values to toggle button answers

How do I assign values to the toggle answers so I can then collate all the values and plot a graph to see how many questions were answered yes or no, for example when the answer is a yes it is equivalent to 1 and a no is equivalent to 0.
2 people have
this question