|There's more than one way to do things|
Re: empty 'else' blockby logan (Curate)
|on Nov 20, 2004 at 19:57 UTC||Need Help??|
Actually, I have stuff like this littered throughout my code. When I'm developing, I need something to happen to tell me the if statement didn't execute. If the statement is something like this:
...then no big deal. If the code is more like this:
...then during the testing period I need to account for a failure condition.
In the field, I'd probably delete the error message, but there's a good chance that I'd leave the else statement in so I could re-enable it later if neccessary.