v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha
v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha

Loop Instruction

You can run some code in a loop, a limited or unlimited number of times.

Loop[( counter )]
[
  {
    instruction_1
    ...
    instruction_n
  }
]


Note: If the counter parameter is omitted or set to INFINITE, the loop is executed infinitely. You can use the BreakLoop instruction to break loop code execution and jump to the next command after the Loop instruction.

Example

Main
{
Loop( 100 ) # Run the instructions below 100 times.
    {
      Send TX_PACKET
Send TX_PACKET
    }

# Run an infinite loop. User interaction is required to break it.
Loop
    {
      Send TX_PACKET
Send TX_PACKET
    }
}