Questions

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 4 - Phrase used to ask questions in closed mode
    To ask a closed question, in number mode, in real number mode, in menu mode, in yes/no mode, in gender mode or in text mode:
        now closed question mode is true;
        now saved prompt is the command prompt;
        if in number mode:
            if current prompt is "":
                now the command prompt is the closed number prompt;
            otherwise:
                now the command prompt is the current prompt;
            now number question mode is true;
        if in real number mode:
            if current prompt is "":
                now the command prompt is the closed real number prompt;
            otherwise:
                now the command prompt is the current prompt;
            now real number question mode is true;
        if in menu mode:
            if current prompt is "":
                now the command prompt is the closed menu prompt;
            otherwise:
                now the command prompt is the current prompt;
            now menu question mode is true;
        if in yes/no mode:
            if current prompt is "":
                now the command prompt is the closed yes/no prompt;
            otherwise:
                now the command prompt is the current prompt;
            now yes/no question mode is true;
        if in gender mode:
            if current prompt is "":
                now the command prompt is the closed gender prompt;
            otherwise:
                now the command prompt is the current prompt;
            now gender question mode is true;
        if in text mode:
            if current prompt is "":
                now the command prompt is the closed text prompt;
            otherwise:
                now the command prompt is the current prompt;
            now text question mode is true;
        if current question is not "":
            say "[current question][line break]";
        if in menu mode:
            repeat with counter running from 1 to the number of entries in the current question menu:
                say "[counter] - [entry counter of the current question menu][line break]".