CHECK_DEBUG_MODE
Checks whether debug mode is currently on.
Example JSON
{
"action": "CHECK_DEBUG_MODE",
"expected_bool": true,
"success_script": "successScript"
},
{
"action": "CHECK_DEBUG_MODE",
"expected_bool": true,
"jump_index": 12
}
MGS Natlang
The condition portion of this action can be used inside an if condition statement, e.g.
script {
if (debug mode is true) {}
}
Examples
script {
if debug mode is true then goto successScript;
if debug mode is true then goto index 12;
if debug mode is true then goto label labelName;
}
Dictionary entries
if debug mode is $expected_bool:boolean
then goto (script) $success_script:string (;)
if debug mode is $expected_bool:boolean
then goto index $jump_index:number (;)
if debug mode is $expected_bool:boolean
then goto label $jump_index:bareword (;)