Sign in to follow this  
Followers 0
keen

Loop

12 posts in this topic

How do i make a loop?


[center]Kesne's Bar & Grill[/center]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

While 1

Code here

Wend

Edited by lolp1

Share this post


Link to post
Share on other sites

Or the ever popular:

do
  code here
until False

and most importantly, check the AutoIt help file :lmao:


Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Or the ever popular:

do
  code here
until False

lol. Just wanted to point that out.

Edited by CHRIS95219

Share this post


Link to post
Share on other sites

How do i make a loop?

with typing on keyboard using your eyes to check documentations :lmao:


MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites

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

Do
;do this code until, the $This_Expression_Is_True is true.
Until ($This_Expression_Is_True);

:lmao:


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

...

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

oh.. no, i was talking about looping so many times.

I did'nt know you were refferring to an infinite loop.

Share this post


Link to post
Share on other sites

Your logic completely escapes me... :lmao:

H.A.N.D.


Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

......

a Do../..Until loop loops until the specified expression is true, not false... The way you put it in your code, made it look like you were showing the syntax of the do/until loop.

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