Animation and variable.

Hey people! Help a newbie get through the basics. I have a state machine with two animations - Animation1 and Animation2. These animations replace each other. I need that in 3rd person blueprint if animation1 playing - variable = true, if animation2 playing - variable = false. How to do it?