print returns false on failure, in which case the 'and' would short-circuit and exit would never get called.
Granted, it's pretty unusual for print to fail -- so rare that we rarely test for success in our prints, and usually don't think in terms of "this could fail", but when you absolutely positively want to exit, don't include a logical test on print's success.
Dave
In reply to Re^2: Looking for discussions of "block after or" syntax error
by davido
in thread Looking for discussions of "block after or" syntax error
by wsanders
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |