loop

Use this command to execute a command loop.

Syntax

loop count [delay] [-r] [-k]

Parameters

count Specifies the number of times to loop. A value of 0 will make the command loop forever.
delay (Optional) Specifies the number of seconds to delay between executions.
-r (Optional) Refreshes the cursor to the home position on the screen.
-k (Optional) Loop continues if an error occurs.

Defaults

  • If a delay is not specified, none will be set.
  • If -r is not specified, the cursor will not refresh.

Mode

All command modes

Example

This example shows how to execute a command loop 10 times with a 30 second delay:

System(rw)->loop 10 30