Sign in to follow this  
Followers 0
Adamstuff

Exit from nested IF

2 posts in this topic

I've got a script without any GUI's that I do a lot of checking in, so I have If - thens inside of If - Thens. On one check inside of a nested If - Then, I have cause to EXIT the script, But doing this:

If (some first event) Then
   If (some second event) Then
      EXIT 
   Endif
Endif
leaves me still in the script even though I have exited the app. Not cool! Can anyone help me out. (Yes, I know which way I came in.) I've always had trouble exiting this kind of thing, no matter what language.

TIA


Heisenberg was probably right...

Share this post


Link to post
Share on other sites



Take a look at ExitLoop.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0