health scoreboard not working

hey, so i did this command: scoreboard objectives add health health but when i tried to detect if the health score is under a certain amount, nothing happens, even if im at half a heart nothing happens, any ideas? im on 1.21.
Continue to help post