Sign in to follow this  
Followers 0
Noddle

Does Autoit v3 have a Goto / Label type of command..

3 posts in this topic

Does Autoit v3 have a Goto / Label type of command..

code i'm trying to write

Start:

do some work

do some more

If $Test from a Subroutine = $No Then

Reset some data

goto Start

EndIf

do some work

do some more

Finish

Nigel..

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

No it uses loops..

While 1
do some work
   do some more
   If Subroutine() = "No" Then
        Reset some data
         Else
           Exitloop
   EndIf   
Wend

  do some work
  do some more

Finish

Func Subroutine()

Do some stuff
Return $Value
EndFunc
Edited by ChrisL

Share this post


Link to post
Share on other sites

Does Autoit v3 have a Goto / Label type of command..

code i'm trying to write

Start:

do some work

do some more

If $Test from a Subroutine = $No Then

Reset some data

goto Start

EndIf

do some work

do some more

Finish

Nigel..

Never again will it have a goto!!!! I think you can still get the old autoit version that has goto but no GUI. Really though this language is ultra easy to learn work with it. Goto is EVIL!!!!

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