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.

How do write a For-Next loop?

loop write
0
Posted

How do write a For-Next loop?

0

You can use a simple Repeat function to execute one statement a specified number of times: // Repeat Beep Repeat( Beep(), 50 ) If you want to repeat a group of statements, you are better off putting those statements in a separate file, and using the RunMacro with the repeat: //for-next loop Repeat( RunMacro(“chores.gc”), 50 ) If you have a need for this, you should review the tutorial on loops and branches in the GroundControl online help.

What is your question?

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

Experts123