Docs

RunMacro Documentation

Create your first robot, then go further as needed.

Clear step-by-step guides to create, run, and improve robots for repetitive computer work.

Docs Flow Continue Loop
⏭️ Flow

Skip to next loop iteration with Continue in RunMacro

The Continue command skips remaining steps in the active cycle and transitions directly to the next loop iteration.

Prerequisites#

  • Continue must reside within an active loop structure (Loop, While, or For Each).
  • Placed within a conditional branch to avoid unintentionally skipping every iteration cycle.

Supported modes#

  • Desktop Mode
  • Browser Mode
  • RunMacro Runner

What it does#

The Continue Loop command bypasses all subsequent instructions in the active cycle of the innermost loop (While, For Each, or Loop N times). Execution transfers directly back to the top of the loop to fetch the next collection item or re-evaluate iteration conditions. It provides an elegant pattern for skipping blank rows, invalid entries, or irrelevant cases without aborting the entire process.

Screenshots & video#

RunMacro Continue Loop command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Continue Loop command in RunMacro.

When to use it#

  • Bypassing empty rows or table header lines when iterating files in For Each.
  • Skipping disabled or locked accounts while continuing normal processing for the remaining items.
  • Omitting time-consuming sub-steps when an optional condition is not met in the active iteration.

When not to use it#

  • Terminating and halting the entire loop permanently (use Break instead).
  • Temporarily pausing execution for user input (use Pause instead).

Configuration steps#

  1. Place a conditional check (such as an IF testing for empty text or skip status).
  2. Inside the true branch, insert Control Flow › Continue Loop.
  3. Place primary processing actions below the IF check.
  4. Close the loop with End Loop. When Continue is executed, remaining steps are skipped cleanly.

Every option explained#

Next Cycle Advance#

Requires no parameters; automatically advances loop index and binds the next collection element.

Expected result#

Subsequent commands in the active iteration are skipped and the loop immediately advances to the next iteration cycle.

Real example#

Example: Skip empty rows when processing email list#

  1. For Each loop reading lines from emails.txt.
  2. IF check: if {item} is empty (is_empty).
  3. Inside IF: call Continue Loop.
  4. Below IF: send email to {item}.
  5. Close with End Loop.

Limitations and failure cases#

  • In a While loop, if the monitored variable is not updated prior to Continue, the loop may loop infinitely until hitting the safety cap.
  • Applies strictly to the innermost loop boundary when nested structures are used.

Tips & common mistakes#

Pairing Continue with input data validation ensures robust unattended execution that never crashes on junk data.
In For Each loops, executing Continue still increments the iteration index variable accurately for the next item.

Verification details#

  • commands/control_flow.py
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.