How do I prevent the character from sprinting when the stamina value is 0?

Won’t this raise a condition where player is in constant state between being unable to sprint and being able to sprint? This is what I am going through rn haven’t come across anything to fix it atm. If any suggestion please let me know.