Display a message to take a break, but not at the end of the last trial


I am very new to psychopy and have constructed an experiment where stimuli are presented in ten blocks. After every 10 stimuli, I present a “Please take a break and a coffee” message. And at the end of the experiment, I have a thank you screen. I attach an image of the very simple experiment flow

Now, that message to take a break makes no sense if the block just presented was the last one. I would then just want to skip the take a break-screen.

Do you still need help with this problem?