continue

Skips the rest of the current iteration and starts the next iteration, when the value is true.

Value

ValueTypeDefaultDescription
the command's valuedynamic stringStarts the next iteration of the innermost loop when the value is true. Only allowed inside 'for' and 'while'.

Example

"for": {
  "iter": "{ rows }",
  "loopVar": "row",
  "do": {
    "continue": "{ row['status'] != 'open' }",
    "var": { "open": "{ open + [row] }" }
  }
}

Rules

  • The value is evaluated as a boolean.
  • continue is allowed only inside a for or while block. Anywhere else the agent fails validation.
  • In a while loop the condition is evaluated again before the next iteration, as usual.