If statement not working inside Awake or Start function

What is wrong with my code here?
The debugging gets executed but the If statements dosn’t.
Whenever I play the game I want the code to check how many times the player have pressed the ‘‘numberOfDuplicationUpgrades’’ button. And if the player has pressed it once then execute the the if statement. I have added PlayerPrefs to my game and that seems to be working fine.

 void Start()
    {
        flipperLocation();
        
        Debug.Log("Mainbuttonclick starting");
    }

public void flipperLocation()
{
        Debug.Log("location");
        if (numberOfDuplicationUpgrades == 1)
        {
            empty1.SetActive(true);
            empty1.transform.localPosition = new Vector3(580f, -12, 0f);
            empty1.transform.localScale = new Vector3(1.107344f, 1.107344f, 1.107344f);
            empty2.SetActive(true);
            empty2.transform.localPosition = new Vector3(12, -12, 0f);
            empty2.transform.localScale = new Vector3(1.107344f, 1.107344f, 1.107344f);
        }
        if (numberOfDuplicationUpgrades == 2)
        {

                empty1.SetActive(true);
                empty1.transform.localPosition = new Vector3(12f, 102, 0f);
                empty1.transform.localScale = new Vector3(1.107344f, 1.107344f, 1.107344f);
                empty2.SetActive(true);
                empty2.transform.localPosition = new Vector3(580f, 102, 0f);
                empty2.transform.localScale = new Vector3(1.107344f, 1.107344f, 1.107344f);
                empty3.SetActive(true);
                empty3.transform.localPosition = new Vector3(235, -218, 0f);
                empty3.transform.localScale = new Vector3(1.107344f, 1.107344f, 1.107344f);
            }
    }

Looks to me like the if statements are being evaluated and coming up false.
When the start method is called, it also calls flipperLocation(). But numberOfDuplicationUpgrades looks to still be zero (or whatever you have it initialized to). So the if statements evaluate, come back as false, and the program skips everything inside them.