"Can I add a line underneath the else statement which starts another sequence which can only be stopped by completing the sequence?"
Yes, for some definition of "sequence". If you mean function, then yes, you can do that.
It would be most ideal if I could write the sequence without it being directly in there.
That's what functions are for.