Please tell me how can I return information about choosing one of the optionButtons. For example, write 1 to a variable if the first optionButton is selected, or write 2 to this variable if the second optionButton is selected? To then return this variable to the main function.
Buttons can be used instead of optionButtons, but the question remains the same.