AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

While Command

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Sat Mar 13, 2004 6:35 am    Post subject: While Command Reply with quote

Have you thought of adding a WHILE command?

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sat Mar 13, 2004 1:35 pm    Post subject: Reply with quote

I have, but I wanted to keep the syntax simple. A While-loop would be equivalent to a Loop whose first line is an IF-statement, such as this:

Code:
Loop
{
     if finished = Y
          break
     ....
}


Similarly, a do...while construct would be the same as the above except with the check condition at the bottom of the loop.

Maybe this is something I should add to the documentation.
Back to top
View user's profile Send private message Send e-mail
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Sat Mar 13, 2004 5:14 pm    Post subject: Reply with quote

What is really stupid is I have multiple places in my code that I have done that.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group