Messaging

label

View as MarkdownOpen in Claude

Mark any point of the current SWML section with a label so that goto can jump to it.

Properties

label
stringRequired

The label name. Must be unique within the section.

Examples

Label paired with goto for retry

1version: 1.0.0
2sections:
3 main:
4 - label: try_lookup
5 - request:
6 url: "https://api.example.com/lookup"
7 save_variables: true
8 - switch:
9 variable: request_result
10 case:
11 timeout:
12 - goto:
13 label: try_lookup
14 max: 3
15 default:
16 - reply:
17 body: "Lookup complete."