Radio Button Group Selected

This is what I came up with:

dieIDInput = event.source.parent.getComponent('Formatted Text Field').text
conditionInput = event.source.parent.getComponent('Group').components
for components in conditionInput:
	if components.selected == True:
		conditionInput = components.text
	
repairInput = event.source.parent.getComponent('Group 1').components
for components in repairInput:
	if components.selected == True:
		repairInput = components.text

comments = event.source.parent.getComponent('Text Area Comments').text

# A call to our Named Query, inserting the parameters using dictionary syntax.
system.db.runNamedQuery("Die Inspection", {"dieIDInput":dieIDInput, "conditionInput":conditionInput, "repairInput":repairInput, "comments":comments,})

Thank you both for all of the help. Sorry for the poor posting early on as this was a first for me.