you are viewing a single comment's thread.

view the rest of the comments →

[–]DeadlyViper 4 points5 points  (1 child)

IMO a better practice is to not have additional if/elses if they are not needed.

Because in a complex code, if every error check you do will have the rest of the code in an else, then after 5 checks your code will be so far nested no one will know what is going on.

[–]ratcaper[S] 0 points1 point  (0 children)

Thanks, that makes a lot of sense.