Change animation when holding weapon

How would I change the animation depending on what my player is holding? I need to change the player animation when he/she has a sword equipped.

I reckon what you are looking for is the Blend Poses by Bool node;