Can you make animations only when holding sword?

I think its a var but… anyways I’m trying to make my character only swing his sword when his actually holding it is it possible with blueprints?

Create a boolean in your character blueprint. Set it to true when the character is holding the sword. Set it false when not holding the sword. You can get this boolean in the animation blueprint and handle animations accordingly. (i.e. If the boolean is true, then play certain set of animations and if it is false, play certain set of animations)