(Solved) My character's walking animation is cancelling my sprinting animation

For my game I have a code that’s able to execute double tap sprinting if (a or d) key is pressed to activate sprinting speed and the sprint animation. I need help adding in my character’s walking animation after the sprinting animation is done. The problem is when I do add the walking animation in, it cancels out my sprinting animation when the double tap sprinting code is executed and show’s him still walking instead of sprinting. What I need it to do is walk when the player is moving until the double tap to sprint code is executed, then the sprinting animation starts until (a or d) key is released. The walk will resume if (a or d) key is pressed and double tap conditions are not met.

(Fixed) I just set my code afterward is " If player is moving and animation sprint is not running then change animation to walk"