How to stop a delay?

The print statements are meant to be functions separated by a delay. The branch basically allows it to be stopped at any point. The problem is resetting this. If I reset it while the first delay is going then it’s fine since the delay will be reset but if it’s reset while the second or third delay is going, since the boolean’s would still be true, it would continue to run from that point while also running from the beginning. I want to be able to completely stop and then reset from the very beginning.