Well the java keyword 'break' should do that.
But I found that execution still continues under some circumstances. I
reported this as a bug to Pat about a month ago and he said he would look
into it. I haven't heard since then.
Try putting a break statement and see if that works. Whenever it doesn't
work for me I use if/else statements to not execute the rest of the code
based on a boolean I set at the point it should have broken out.
From: Mike Papper [mailto:mike@...]
Sent: Wednesday, March 21, 2001 2:35 AM
Subject: [Beanshell-users] How to stop script execution "in its
Is there any way to say "stop executing the script at this point here".
I want to do this so I can abort a script if I see that some condition
(like the user is invalid) is not met.
I am not a member of the mailing list, can you send me email to
Beanshell-users mailing list