Sign in to follow this  
Followers 0
scriptstopper

While 1, ... WEnd

7 posts in this topic

Can someone describe the function of:

While 1
 ...
WEnd

?

I looked at the documentation and don't find anything.


don't think i'm a freeloader. your help has been effective! here's the script contributed - thank you creator and thank you members and thank you authors of autoit!Call Conference Dial-in Script updated from time to time.

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

While 1 is equal to 1 the code between will be ran in a loop, unless told to exit or an error occurs which causes the loop to end.

Like this?

While 1
    If 1 Then ExitLoop
WEnd

Or this?

While 1
    If 2 Then ExitLoop
WEnd

What will happen in each case? Don't run the code, and don't cheat. ;)

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

While 1 is equal to 1 the code between will be ran in a loop, unless told to exit or an error occurs which causes the loop to end.

It's more like While 1 = True.

Share this post


Link to post
Share on other sites

Like this?

While 1
    If 1 Then ExitLoop
WEnd

Or this?

While 1
    If 2 Then ExitLoop
WEnd

What will happen in each case? Don't run the code, and don't cheat. :)

I'd hazard a guess that they would both exit the loop imediately ;)

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I swear on the holy mother I checked to see if I already posted this question Re: While 1, Wend;

before I fell asleep at the terminal last night.

Checked the option to see my own posts, or so I thought...

Thanks for the replies!

Edited by scriptstopper

don't think i'm a freeloader. your help has been effective! here's the script contributed - thank you creator and thank you members and thank you authors of autoit!Call Conference Dial-in Script updated from time to time.

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