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

version: 1.0.0
sections:
main:
- label: try_lookup
- request:
url: "https://api.example.com/lookup"
save_variables: true
- switch:
variable: request_result
case:
timeout:
- goto:
label: try_lookup
max: 3
default:
- reply:
body: "Lookup complete."