Skip Animation State Based On Condition

I am trying to create attacks that only activates when certain conditions are met (EX: Having a certain amount of health). I set up a series of checks in OnStateEnter to account for this. I was thinking that if the checks come back negative, and the attack cannot be used, the State should just be exited without playing the attached animations, sounds, etc.

However, I’m sure how exactly to cancel the evaluation of a state. I tried using animation parameters to transition to exit, but the Exit transition always happened after the animations has already played. Any thoughts?

Make the evaluation perform before entering the state - in the previous state.
True = enter new state, False = transitions to other state or stay in current state.