Skip to main content

Control

  • Break: Stops the current loop immediately.
  • Continue: Skips the rest of the current loop iteration and moves on to the next one.
  • Fail: Stops the script immediately and reports a custom error message.
  • For Each List Item: Iterates through all items of a list.
  • For Range: Runs a counted loop from a start value to an end value with a configurable step size.
  • If: Runs the first branch whose condition evaluates to true, with an optional else body when no branch matches.
  • Sleep: Pauses for a chosen number of milliseconds and can optionally sync pending actions and buffered file writes first.
  • Transaction Boundary: Ends the current transaction and starts a new one for subsequent blocks. Can split undo into multiple steps.
  • While: Repeats its body while condition stays true.