Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where is the “goto” command?

Command goto
0
Posted

Where is the “goto” command?

0

Gone. It’s evil. No, you can’t ask why – it just is. It’s like that lump of rock they find in the microwave at the end of the film Time Bandits 🙂 AutoIt v3 features most of the common “loops” in use today and with these Goto is no longer required. Look up While, Do, For, ExitLoop, ContinueLoop and Functions for the modern way of doing things 🙂 And while you are looking at help file sections check out these on loops, conditional statements and functions. I promise you, once you have got the hang of such things you will be able to script in virtually any other language within a couple of minutes. Just to get you started, the most basic use of Goto in version 2.64 was an infinite loop like: :mylabel …do something… …and something else… goto, mylabel A simple v3 version of that is a While loop that is always “true”. While 1 = 1 …do something… …do something else…

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.