currently polishing my custom weapons datapack, there's this hammer that when it hits a player, it adds units to a score that acts as a timer, as long as that score isn't 0, their armor is replaced by a "troll" variant and once it reaches 0, that armor disappears and they can go on as normal.
My problem is that my Loop function constantly checks for said score reaching 0, once it does, it permanently runs the "remove armor" function so no players can actually put on any armor at any time. How would I make it so that the check is constant, but the command is only ran once?