Page 1 of 1

[REQ] How to end/stop a script immediatly ?

Posted: 2006-12-18 23:46:06
by bad4u
Hi, I'm writing a new script for a german website but now I need some helping hand.

Is there any command to end a script immediatly or some kind of 'GOTO end.' ?

I need this function because I want to end a script with a message (ShowMessage), when two 'IF GetOption' conditions are fulfilled.

Thanks.

Posted: 2006-12-19 10:22:12
by antp
You can exit from current function/procedure with "Exit" command.
To stop the script there is an "Error" function but that does not stop it very properly (I think that it shows a message to the user).

Posted: 2006-12-20 20:52:20
by bad4u
Thanks, 'Exit' works fine.