As beamrider already wrote, it is not possible to infer - from your question and the source fragment you give - what the actual problem *is*!
We're talking about *basics* of structured programming here: if you have a code sequence S1, which shall be executed upon a predicate P being true, another code sequence S2, which shall be executed upon same predicate P being false (i.e. not true), have some code sequence S3 which doesn't depend upon P but is supposed to be executed before either S1 or S2, and finally have some code sequence S4 which also doesn't depend upon P but is supposed to be executed after either S1 or S2, you write this as follows:
... with S1 and S2 each either a single statement ended by a semicolon, or a compound statement enclosed in curly braces {...}, where the closing brace is *not* followed by a semicolon.
In C, the break statement does not operate upon the "if(<condition>) <statement> else <statement>" structure as given above, but it terminates the innermost surrounding loop (for, do, while) or switch statement.