keen Posted October 20, 2006 Share Posted October 20, 2006 How do i make a loop? [center]Kesne's Bar & Grill[/center] Link to comment Share on other sites More sharing options...
lolp1 Posted October 20, 2006 Share Posted October 20, 2006 (edited) While 1 Code here Wend Edited October 20, 2006 by lolp1 Link to comment Share on other sites More sharing options...
PaulIA Posted October 20, 2006 Share Posted October 20, 2006 Or the ever popular: do code here until False and most importantly, check the AutoIt help file Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
cppman Posted October 20, 2006 Share Posted October 20, 2006 (edited) Or the ever popular: do code here until False lol. Just wanted to point that out. Edited October 20, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
ddeerr Posted October 20, 2006 Share Posted October 20, 2006 How do i make a loop?with typing on keyboard using your eyes to check documentations Link to comment Share on other sites More sharing options...
AzKay Posted October 20, 2006 Share Posted October 20, 2006 Your first loop... that false should be a true Do ;do this code until, the $This_Expression_Is_True is true. Until ($This_Expression_Is_True); # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
PaulIA Posted October 20, 2006 Share Posted October 20, 2006 Your first loop... that false should be a trueActually, 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. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
cppman Posted October 20, 2006 Share Posted October 20, 2006 (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 October 20, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
PaulIA Posted October 20, 2006 Share Posted October 20, 2006 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 More sharing options...
cppman Posted October 20, 2006 Share Posted October 20, 2006 oh.. no, i was talking about looping so many times.I did'nt know you were refferring to an infinite loop. Miva OS Project Link to comment Share on other sites More sharing options...
PaulIA Posted October 20, 2006 Share Posted October 20, 2006 Your logic completely escapes me... H.A.N.D. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
cppman Posted October 20, 2006 Share Posted October 20, 2006 ......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. Miva OS Project Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now