"[you]" = whomever
[you] want "attempt to understand" the code?
Why did [you] choose to use OR the way you did?
(or (wcmatch (strcase errmsg) "*BREAK,*CANCEL*,*EXIT*")
(princ (strcat "\nError: " errmsg " **")))
Why did you terminate it after the first PRINC statement (technically speaking: there would be no difference if you terminated after the second princ)?
(or (wcmatch (strcase errmsg) "*BREAK,*CANCEL*,*EXIT*")
(princ (strcat "\nError: " errmsg " **"))
(princ))
Why did [you] choose OR over something simpler to understand like COND?
(cond
((wcmatch (strcase errmsg) "*BREAK,*CANCEL*,*EXIT*")
(princ (strcat "\n** Error: " errmsg " **")))
)
The way [you] use OR in the previous is confusing. In fact it would be less confusing and more straightforward if [you] choose to use IF or COND.
Why did'nt [you] at least stop all commands?
(repeat 2 (command))
Why did [you] choose the name "*error*" and not something like "MYERRHNDLR"
...