Idle to walk animation transition on movement

In My character.h, I have bool Walking.

In my character.cpp

Walking is set to true when the player is moving(forward or right).
Set back to false when there is no movement.

I need to get this value from animation blueprint(to set idle state to walk state, vice versa) but I have no idea how to pass it.

Thank you!