Setting a variable to the result of some radio buttons

does anybody know the syntax to setting the result of some radio buttons to a variable and then using the result of the variable to do things (i.e. open location)