label
Mark any point of the SWML section with a label so that goto
can jump to it.
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: "say: This speech will be repeated 4 times."
- goto:
label: foo
max: 3
{
"version": "1.0.0",
"sections": {
"main": [
{
"label": "foo"
},
{
"play": "say: This speech will be repeated 4 times."
},
{
"goto": {
"label": "foo",
"max": 3
}
}
]
}
}