How do I make my character only sprint in one direction?

Blueprint doesn’t seem to be working. Can you send an example?