Thread: Tech Tip for coders
View Single Post
Old 01-01-2021, 01:35 PM  
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by 8pt-buck View Post
"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 ...
Old habits die hard.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote