how to make a double jump with animation

i already know how to make a double jump and a jump with an animation but when i press jump for the second time for it keeps doing the first jump animation

use a property. set it to 2 when you hit the ground and when ever you jump subtract one from it. if it is two that means you were on the ground so it will do the off the ground jump, if its one it means you were in the air and do the air jump. if its zero it won’t jump and you will fall.

Make Sense?

yes i will try it right away and thanks again for helping me