Glimmr Canvas Editor

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Cancelling open questions with return

    Rule for printing a parser error when the command parser error is the I beg your pardon error:
        if number question mode is true and closed question mode is false:
            say "[current cancelation message][line break]";
            deactivate number question mode;
            rule succeeds;
        if menu question mode is true and closed question mode is false:
            say "[current cancelation message][line break]";
            deactivate menu question mode;
            rule succeeds;
        [if yes/no question mode is true and closed question mode is false:
            say "[current cancelation message][line break]";
            deactivate yes/no question mode;
            rule succeeds;]
        if gender question mode is true and closed question mode is false:
            say "[current cancelation message][line break]";
            deactivate gender question mode;
            rule succeeds;
        if text question mode is true and closed question mode is false:
            say "[current cancelation message][line break]";
            deactivate text question mode;
            rule succeeds;
        if real number question mode is true and closed question mode is false:
            say "[current cancelation message][line break]";
            deactivate real number question mode;
            rule succeeds;
        continue the action.