Radio Button Help

I was wondering if you are able to refer to the radiobutton groupname? I have about 10 radio buttons all with the same groupname and when I click on my next button, if none are selected an alert message come’s up. But am I able to say: “if (groupname(radiogroup.selected == false));” Does the groupname have those sorts of properties??