Play hit or death animation montage

Hello I tried to script an enemy death trigger.
When enemy is hitten, if health is > than 0, then play hit montage, if health is >= 0 then play death montage. But it’s not working. What I’m doing wrong ?