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

I’m actually struggling with this, I’ve only started using blue prints a few days ago, and I literally have no idea on how to make my character stop sprinting when the stamina value reaches 0.