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

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

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

Post 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.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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).
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Thanks, 'Exit' works fine.
Post Reply