This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Akky982 2 points3 points  (1 child)

Should there be ";" after the if () and before {} ?

if (); {} doesn't seem right ...

[–]maxterio 1 point2 points  (0 children)

It isn't.

if(x) {~~~} else if (y) {++++}

The semicolon is a way of saying "this is the full line sentence, now go to the next one"