Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Single line If, or Multiline?

$
0
0
Hello all,

I learned about single line If statements today, and really like the idea of them. I was wondering what you all preferred, as in Single line If, Multiline If/Else, or Select Case Statement, and why do you prefer one over the other?

I like the single line If statements when I'm performing difficult logic in my program, because I can see it all in that one line. On the other hand using single line if statements makes it harder to debug a program.

Looking forward to hearing your answers! :bigsmile:/>

Viewing all articles
Browse latest Browse all 51036

Trending Articles