> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# label

> Mark a position in the current section so that goto can jump to it.

Mark any point of the current SWML section with a label so that
[`goto`](/docs/swml/reference/messaging/goto) can jump to it.

## **Properties**

The label name. Must be unique within the section.

## **Examples**

### Label paired with goto for retry

```yaml
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."
```

```json
{
  "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."
              }
            }
          ]
        }
      }
    ]
  }
}
```