Jump to content

Loop


keen
 Share

Recommended Posts

Your first loop... that false should be a true

Actually, no it shouldn't. He asked how to do a loop. If you changed the False to True, it would drop out on the first pass through the code and then it wouldn't be a loop at all. :lmao:
Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

...

Your looping until that expression is true..

not until that expression is false.

Do Until works almost exactly like the Do While loop except that the Do Until loop continues executing the body of the loop until the comparison test is true.

Edited by CHRIS95219
Link to comment
Share on other sites

Your looping until that expression is true..

not until that expression is false.

You're missing the point and I'm not sure what you're hung up on. The OP asked how to make a loop. If you replace "False" with "True", my example is not a loop. You'll fall through the code the first pass through and never loop.

My example is no different than the one posted by lolp1. He created an infinite loop by testing a constant that always returns True so he'll stay in the loop. I did the same thing but I'm testing a constant that always returns False so I'll stay in the loop, what's the problem?

Auto3Lib: A library of over 1200 functions for AutoIt
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...