break void function when the condition is met

I give up.

...R