Jump to content

ExitLoop terminate father Loop too.


Omegis
 Share

Recommended Posts

Hi,

i have notice that when i use for within for, and in the internal for i use ExitLoop function its terminate the 2 loops,

its seem to be a bug,

except using ugly if, there is away to workaround ?

Thanks

I'm going make a guess at the problem is in your code, here's an example of the inner for loop with exitloop

This works properly.

For $x = 0 to 10
 for $y = 0 to 10
  MsgBox(0,"test","y = " & $y)
  If $y = 3 Then ExitLoop
 Next
Next

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...