What should I write for condition

I'm trying to do if an entity is currently moving it will run a function. If it's not moving I want it to run another function. what should I put for condition to detect whether it's moving or not?
Continue to help post