Having trouble with Radio Button functions/expression

Having trouble with Radio Button functions/expression

The 1st two choices of the Radio Button works correctly. But the 3rd Choice is not working. Once Choice Three is chosen it will not allow to be updated should the client decide to correct his choice.

If you start with any of the 2 top choices one you can toggle between the two and you will successfully update. If you choose any of the formulas for the 3rd choice they will also update successfully. But if you choose any of the formulas from the 3rd Choice and then change your choice to any of the 1st two choices, data will not update successfully. Below is the script I created on the upload of the input section of the Radio Button.

I have given access to your admin


Radio Button =  Display Name:   Ambush Rescue,   field name:  a_o_rescue


Choice 1  Blue Team
Choice 2  Yellow Team
Choice 3  No Team

if (input.a_o_rescue  ==  "Blue Team")
{
    input.b_g3_pts = 50;
    input.b_rescue_n = 1;
    input.g3_winner = "Blue Team";
    show b_g3_pts;
    show b_rescue_n;
    input.y_g3_pts = 0;
    input.y_rescue_n = 0;
    hide y_g3_pts;
    hide y_rescue_n;
}

else if (input.a_o_rescue  ==  "Yellow Team")
{
    input.y_g3_pts = 50;
    input.y_rescue_n = 1;
    input.g3_winner = "Yellow Team";
    show y_g3_pts;
    show y_rescue_n;
    hide b_g3_pts;
    hide b_rescue_n;
    a_rescue_pts = 0;
    input.b_rescue_n = 0;
}


else if (input.a_o_rescue  ==  "No Rescue")
{
    input.b_rescue_n = 0;
    hide b_rescue_n;
    input.y_rescue_n = 0;
    hide y_rescue_n;
}
else if (input.b_a_tt_ks  >  input.y_a_tt_ks)
{
    input.b_g3_pts = 25;
    show b_g3_pts;
    input.y_g3_pts = 0;
    hide y_g3_pts;
}
else if (input.b_a_tt_ks  <  input.y_a_tt_ks)
{
    input.y_g3_pts = 25;
    show y_g3_pts;
    input.b_g3_pts = 0;
    hide b_g3_pts;
}