Hi,
I want to interrupt a procedure with an if condition. For example:
if (a condition) then
TestProcedure1;
else
*interrupt current procedure;
endif;
I know I can use BREAK; to stop the loops. But how can I stop a procedure?
Hi,
I want to interrupt a procedure with an if condition. For example:
if (a condition) then
TestProcedure1;
else
*interrupt current procedure;
endif;
I know I can use BREAK; to stop the loops. But how can I stop a procedure?
Depending on what you want, you can call the “return” statement with or without a return value, or if you want to indicate an error, you can call “raise error ...” which you can then subsequently catch in a block-on-error statement.
Already have an account? Login
Please use your business or academic e-mail address to register
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Didn't find what you were looking for? Try searching on our documentation pages: