examine the following code:
Code:
goto $1
when there is no label called $1, an error is thrown, this error can be caught by including an :error label, so far so good.

now there a two things that strike me as odd here:
- the error is only caught if there is no label after the :error label in the current scope
- when an :error label is present and there is no label following it, no error is thrown, however, the script does not jump to the :error label. in fact it jumps to the first label (the $error is still set though).

the helpfile states "When an error occurs, the script will jump to :error and continue running.". so these are either bugs, or the helpfile is wrong.

using mirc v6.16.