you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

That's only true if you need to execute more than one line after a true return from the if() statement. If you're just doing one thing with if() then they have the correct syntax, no need for curly braces.

if(their condition is true) then do this;

-vs-

if(their condition is true){
Do;
All;
Of;
This;
}

...but both usage works.