I mean, if you haven't already, you need to add the conditions for every time you switch animation, for every value of variable. Something like,
If Player walking
(sub event) + Variable = 0 --> Change animation to Normal_Walking
(sub event) + Variable = 1 --> Change animation to Cowboy_Walking
If Player presses slide --> Slide
(sub event) + Variable = 0 --> Change animation to Normal_Slide
(sub event) + Variable = 0 --> Change animation to Cowboy_Slide
Otherwise you may get conflicts with it trying to switch to a different animation when it's trying to slide, etc.