Minecraft – Can you test for a player whose score does *not* equal a given number in Minecraft

minecraft-commandsminecraft-java-edition

In Minecraft, is it possible to test for a player whose score does not equal, say, 5 (i.e. if their score is less than 5, greater than 5, or null)?

Best Answer

Big edit to this answer, because 1.13 added a way to directly do this:

/execute as @a unless score @s <score> matches <value> run <command>