Command To End The Running Script?

hi, as you can see, i have a very simple question: is there a mel command that ends the whole script (like break does to a loop) ?

Thanks,
Z

no, you can only use "return" to exit a procedure on a defined line. Usually you will wrap your script in a proc so this should be no problem.

CODE
proc test() {

  do stuff

  if (abort)
    return;

  do other stuff
}

// auto-invoke test procedure.
test();

thanks for the reply!
i actually wanted to break the whole process. i can use the error command but i wouldn;t like ERROR to be the written as outcome : )

use catch