Introduction to the Minecraft conditional subcommand score

score
Used to check whether the score of the score item in the scoreboard of the specified target meets the specified relationship with the score of the score item of another (or the same) target, or whether it is within a given range
Format: if/unlessscore<target entity> <target scoreboard>(<|<=|=|>=|>)<comparison entity> <comparison scoreboard> (check whether the score of <target entity>'s <target scoreboard> and the score of <comparison entity>'s <comparison scoreboard> meet the operator relationship); if/unless score <target entity> <target scoreboard> matches <range> (——check whether the score of <target entity>'s <target scoreboard> is within the specified <range>)
Explanation:
The score parameter is often used in bubble sorting and winning and losing judgment in competitions. For example (the target score here is Scores):
/execute if score Judge Scores > BADASS Scores run give Judge minecraft:gold_block 1
Here, if the score of "Judge" is higher than that of "BADASS", then "Judge" will be given a gold nugget.