How can I make an animation change mid-animation?

So I’m trying to do animation and playing with speed, exit time, duration time, but nothing seems to work. How can I stop the idle animation during the animation, and switch to the walking one? And vice versa.
![alt text][1]

https://www.reddit.com/r/Unity3D/comments/mjxnpd/how_can_i_make_the_animations_flow_as_soon_as_i/gtcock6/?%24deep_link=true&correlation_id=82515173-0cde-4e55-bb8e-3f612fe4e3f0&ref=email_post_reply&ref_campaign=email_post_reply&ref_source=email&%243p=e_as&_branch_match_id=809679214394255910

Basically turn off exit time