Trying to cycle through weapons

So after days of pounding my head into my keyboard, and with a lot of help from Miziziziz and Griffo I finally was blessed to get the weapon switch script I was using to work nearly flawlessly. Now the player won’t have a weapon until they actually pick it up. Sounds simple, but I was amazed how involved the process was. Thanks to everyone who helped! There’s a small issue at the tail end now, that I’m hoping is easy to fix and that I’m just missing: The weapons properly cycle once through each of the gameobjects. (empty hand, club, sword, and then back to empty hand.) But then from the second cycle weapon 2 is always skipped (club) so that it now goes empty hand, sword, empty hand. Am hoping someone might point out what I’m doing wrong. Thanks, and God bless.

 var Weapon01 : GameObject; // empty hand
    var Weapon02 : GameObject; // club
    var Weapon03 : GameObject; //sword
    static var weaponready = false;
    static var swordready = false;
     
     
     
    function Update () {
     
    if (Input.GetButtonDown("Weapon Switch")) {
    if (weaponready == true)
    SelectWeapon();
    }
    }
     
     
     
     
     
    function SelectWeapon () {
    if (Weapon01.active == true)
     
    {
    if (WeaponInv.Club >=1)
    Weapon01.SetActiveRecursively(false);
    Weapon02.SetActiveRecursively(true);
    Weapon03.SetActiveRecursively(false);
    }
    if (Input.GetButtonDown("Weapon Switch")) {
    if (WeaponInv.Sword >=1)
    if (swordready == true)
    SwordSelect();
    }
    }
     
    function SwordSelect () {
    if (Weapon02.active == true)
    {
    if (WeaponInv.Sword >=1)
    if (swordready == true)
    Weapon01.SetActiveRecursively(false);
    Weapon02.SetActiveRecursively(false);
    Weapon03.SetActiveRecursively(true);
    }
     
    else
    {
    if (Weapon03.active == true)
     
    {
    Weapon01.SetActiveRecursively(true);
    Weapon02.SetActiveRecursively(false);
    Weapon03.SetActiveRecursively(false);
    }
     
    }
     
    }

You could just create an array of game objects(the weapons), and cycle through the elements of it(when the player scrolls up or something), that way you can add more weapons later without pain, and the code would look a lot more cleaner.