how to make a command run as @a and stop when at least 1 player has a tag

rn i have this execute as @a[distance=..25,sort=arbitrary] if score @s vom.memory.player.leaderboard = $min1 vom.memory.player.leaderboard unless entity @a[tag=vom.memory.1st,distance=..25] unless entity @a[tag=vom.memory.1st,distance=..25] run tag @s add vom.memory.1st what i want it to do is, go to the first player, check if their score matches $min1, then add a tag to that player, and stop running the function for ALL players if the scores do not match, move to the second player, etc.
Continue to help post