What is the best logic for this flow?

See screenshots in this other post of mine (in Dutch, but I hope you get the idea; or you can have your browser/AI translate them)):