GOTO_ACTION_INDEX
Jumps to the action at the given label (bareword) or action index (number). All jumps are made within the current script.
The index (number) variant is not recommended for manual use, as COPY_SCRIPT
and procedural syntax expansion can make action indices impossible to predetermine.
The keyword return
uses this action to jump to the end of the current script (i.e. "return early").
Example JSON
{
"action": "GOTO_ACTION_INDEX",
"action_index": 12
}
MGS Natlang
Examples
script {
goto index 12;
goto label labelName;
}
Dictionary entries
goto index $action_index:number (;)
goto label $action_index:bareword (;)