Jump to content

Conditionally continuing a Loop


Recommended Posts

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'

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...