This question already has an answer here:
I am making a hide & seek scoreboard countdown for a friend of mine's hide and seek game. I want to ask how do you use
/execute to test if an entity’s scoreboard is equal to 0?
I have an armour stand with a score that goes down by 1 every second, so I wanted to make it so that it runs a command when the score equals 0.