Jump to content

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


Noddle
 Share

Recommended Posts

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
Link to comment
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!!!!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...