How do write a For-Next loop?
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.