With this function you can get the current animation set being used by your skeletal animation sprite. The return value is a string, which will be the name of the set as you defined it in your skeletal animation program.
IMPORTANT: Spine integration in GameMaker: Studio is a Pro licence feature and will not work in the Free/Standard versions.
if skeleton_animation_get() != "jump"
The above code will change the animation set being used to the "jump" set when the space key is pressed, but only if the current set being used is not already "jump".