I'm assuming this is a platformer. Most would create a bool set to true when you hit the ground and false right after you jump then use that bool to determine if you are on the ground also you can use if(ySpeed of actor < 0) bool = false (***As if you are falling***) and there are a few other ways to do it as well.
Hope this helps