SetActive UI Not Working

The SetActive bool isn’t working, any idea why?

if (totalHealth <= minimumHealth)
{
deathScreen.SetActive(true);
}

Thanks in advance.

Aha, got it. The variables for the deathScreen and victoryScreen needed to be GameObjects, not GUI’s.