I find it better style to use { and } with single line ifs, you can indent it and make any possible debugging better. and should the if become 2 or more lines you are making it easier for yourself and less likely to have a future bug. This comes in more importance when you are making a really large project, simple code is easier to read, its just 2 lines.
|