how to check if a scoreboard number is under 0 in minecraft bedrock code example
Example: how to do stuff with a scoreboard minecraft
/scoreboard players test * <objective> <min> [max]
/scoreboard players test * <objective> <min> [max]