If statements help

here is my problem i have a function called score which works fine and adds 1 to the score…yet what i want is when oen of my radio component buttons is clicked i want the function to play function score and add 1 to the score and just simply goto the next frame.

here is my code:

function(){
    if(q1a2.selected = true){
    score();
    _root.gotoAndStop("q2");
} else {
_root.gotoAndStop("q2");
}
}

when i play it does nothing and doesn’t add 1 to the score

cheers in advance :slight_smile: