label
Mark any point of the SWML section with a label so that goto
can jump to it.
label Parameters
Name | Type | Description |
---|---|---|
label | string | an identifier string for the current label |
Examples
- YAML
- JSON
version: 1.0.0
sections:
main:
- label: foo
- play:
url: 'say: This speech will be repeated 4 times.'
- goto:
label: foo
max: 3
{
"version": "1.0.0",
"sections": {
"main": [
{
"label": "foo"
},
{
"play": {
"url": "say: This speech will be repeated 4 times."
}
},
{
"goto": {
"label": "foo",
"max": 3
}
}
]
}
}