2 idle poses?

I made a 2nd idle pose for my main toon for when there half way dead so to speak. I am wondering how to program it for when she is past the half way mark so that the “Hurt Idle” plays over the normal Idle.

Edit I almost forgot I also did a hurt for the walking so that kinda falls under the same question as the Idle one.

A simple if statement!

if(playerHealth < 50){
 //replace normal idle animation with hurt one

}