Quote:
Originally Posted by 8pt-buck
"else" really isn't needed after every "if" ..
I can give you a bunch of examples ...
Personally.. it would make a mess of the code to write to write a empty else after every if.
You don't always need a final else ...
|
I think most programmers are well aware of that but it is worth repeating for any newbs out there.
With that said, many of us refer to the conditional structure as "if then else" whether there is a literal else indicated or not. Not putting an else says to do nothing:
if this condition then do this else do nothing
is the same as
if this condition then do this
.