If you want to use multiple statements within an if statement, you need to use braces.
In fact, I'd go further: as a matter of good practice, you should always put braces around the code that is executed conditionally, even if it is only a single statement. It is frighteningly easy to introduce bugs by going back and adding a second statement, and forgetting to add the braces. I've seen this happen in every single one of the jobs I've worked at, and I've done it a few times myself.
It's much safer to protect yourself from this by putting in the braces every time.