Minecraft wiki entry for Redstone_Comparator, associated text: Down and unpowered (indicating the comparator is in "comparison mode")
Up and powered (indicating the comparator is in "subtraction mode")