Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Exclude For Next loop

$
0
0

Hi,

 

I am trying to figure out how to configure some nested loops so that based upon user preference a user can choose not to 'run' a loop. I am posting up a simple example in case in the hopes that there is a simple answer.

 

I imagine I could use a variable once inside the loop to exitloop, but I was hoping for syntax that would allow me to completely prevent the loop from running.

 

In this example I tried using a simple if...then statement but it doesn't work. :(

 

Thank you

$includeloop2 = 0 for $loop1 = 1 to 3     if $includeloop2 = 1 then for $loop2 = 1 to 3         for $loop3 = 1 to 3         Next     Next Next

Viewing all articles
Browse latest Browse all 12506

Trending Articles