Goto Label Step

Introduction

The Goto Label Step jumps to a previously defined label in the event, enabling loops and non-linear event flow. See Label Step for details on setting a label.

Interface

interface GotoLabelStep {
  kind: 'gotoLabel';
  condition?: string;
  label: string;
}

Properties

kind - Always 'gotoLabel'

label - Target label name

condition (optional) - Conditional execution

Example

{
  kind: 'gotoLabel',
  label: 'retry_point',
  condition: 'attempts < 3'
}