Minecraft wiki entry for execute, associated text: Kill all players standing on a wool: execute as @a at @s if block ~ ~-1 ~ #wool run kill @s
Check whether your own scores A and B are equal: execute if score @s A = @s B