CHECK_SAVE_FLAG

Checks one of the save flags (booleans).

Example JSON

{
  "action": "CHECK_SAVE_FLAG",
  "expected_bool": true,
  "save_flag": "saveFlagName",
  "success_script": "successScript"
},
{
  "action": "CHECK_SAVE_FLAG",
  "expected_bool": true,
  "jump_index": 12,
  "save_flag": "saveFlagName"
}

MGS Natlang

The condition portion of this action can be used inside an if condition statement, e.g.

script {
  if (flag saveFlagName is true) {}
}

Examples

script {
  if flag saveFlagName is true then goto successScript;
  if flag saveFlagName is true then goto index 12;
  if flag saveFlagName is true then goto label labelName;
}

Dictionary entries

if flag $save_flag:string is $expected_bool:boolean
    then goto (script) $success_script:string (;)

if flag $save_flag:string is $expected_bool:boolean
    then goto index $jump_index:number (;)

if flag $save_flag:string is $expected_bool:boolean
    then goto label $jump_index:bareword (;)