in reply to empty 'else' block
I guess I'm missing the point. You don't have to have an else segment.
If you want your if() to terminate after executing the truth segment, but you don't want to wrap the entire rest of your script inside of an else segment, you can die or exit at the end of the truth segment, and forgo using an else segment. If you want it to execute the truth segment, and then execute the rest of the script regardless of the outcome of the if() evaluation, then just don't use an 'else' segment.
Only use an else segment if you want a mutually exclusive logical branch in the program's execution.
Dave
|
|---|