Sign in to follow this  
Followers 0
Big10Inch

Conditionally continuing a Loop

2 posts in this topic

I'm trying to conditionally continue a loop and don't know correct coding.

Simple example:

For $x = 1 to 10

; If $x = 3 then skip opening the MsgBox

If $x = 3 Then Next

MsgBox(0, "Loop Number", $x )

Next

I wanted this routine to open a message box for # 1,2,4,5,6,7,8,9,10 and skip # 3

Auto-It doesn't like the 'Next' command next to the 'Then'

Share this post


Link to post
Share on other sites



replace next w continueloop

That did the trick --- Thank You

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