Meaning of “value is t”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















When using describe-variable, often the value for a variable is listed as:



Its value is t



What does that mean and why specifically t?










share|improve this question




























    2















    When using describe-variable, often the value for a variable is listed as:



    Its value is t



    What does that mean and why specifically t?










    share|improve this question


























      2












      2








      2








      When using describe-variable, often the value for a variable is listed as:



      Its value is t



      What does that mean and why specifically t?










      share|improve this question
















      When using describe-variable, often the value for a variable is listed as:



      Its value is t



      What does that mean and why specifically t?







      help






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 14 at 17:08









      Drew

      48.6k463107




      48.6k463107










      asked Feb 14 at 12:39









      ChaimKutChaimKut

      1127




      1127




















          1 Answer
          1






          active

          oldest

          votes


















          7














          To quote the Emacs Lisp Manual,




          t is the preferred way to represent the truth value true. When you
          need to choose a value that represents true, and there is no other
          basis for choosing, use t. The symbol t always has the value t.




          t stands for "True".



          This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t means that the variable you're describing holds the value t. The consequence of the variable being t depends on the variable.



          For example,



          (setq inhibit-startup-message t)


          When the value of inhibit-startup-message is t, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil value. nil is the opposite of t and means "False".



          Generally speaking, the concepts of t and nil are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.



          Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.






          share|improve this answer




















          • 2





            I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than nil is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil is false, and every non-nil value is true. t is a value which is true, and which has no other meaning.

            – phils
            Feb 15 at 4:36











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "583"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f47822%2fmeaning-of-value-is-t%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          To quote the Emacs Lisp Manual,




          t is the preferred way to represent the truth value true. When you
          need to choose a value that represents true, and there is no other
          basis for choosing, use t. The symbol t always has the value t.




          t stands for "True".



          This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t means that the variable you're describing holds the value t. The consequence of the variable being t depends on the variable.



          For example,



          (setq inhibit-startup-message t)


          When the value of inhibit-startup-message is t, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil value. nil is the opposite of t and means "False".



          Generally speaking, the concepts of t and nil are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.



          Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.






          share|improve this answer




















          • 2





            I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than nil is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil is false, and every non-nil value is true. t is a value which is true, and which has no other meaning.

            – phils
            Feb 15 at 4:36
















          7














          To quote the Emacs Lisp Manual,




          t is the preferred way to represent the truth value true. When you
          need to choose a value that represents true, and there is no other
          basis for choosing, use t. The symbol t always has the value t.




          t stands for "True".



          This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t means that the variable you're describing holds the value t. The consequence of the variable being t depends on the variable.



          For example,



          (setq inhibit-startup-message t)


          When the value of inhibit-startup-message is t, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil value. nil is the opposite of t and means "False".



          Generally speaking, the concepts of t and nil are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.



          Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.






          share|improve this answer




















          • 2





            I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than nil is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil is false, and every non-nil value is true. t is a value which is true, and which has no other meaning.

            – phils
            Feb 15 at 4:36














          7












          7








          7







          To quote the Emacs Lisp Manual,




          t is the preferred way to represent the truth value true. When you
          need to choose a value that represents true, and there is no other
          basis for choosing, use t. The symbol t always has the value t.




          t stands for "True".



          This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t means that the variable you're describing holds the value t. The consequence of the variable being t depends on the variable.



          For example,



          (setq inhibit-startup-message t)


          When the value of inhibit-startup-message is t, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil value. nil is the opposite of t and means "False".



          Generally speaking, the concepts of t and nil are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.



          Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.






          share|improve this answer















          To quote the Emacs Lisp Manual,




          t is the preferred way to represent the truth value true. When you
          need to choose a value that represents true, and there is no other
          basis for choosing, use t. The symbol t always has the value t.




          t stands for "True".



          This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t means that the variable you're describing holds the value t. The consequence of the variable being t depends on the variable.



          For example,



          (setq inhibit-startup-message t)


          When the value of inhibit-startup-message is t, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil value. nil is the opposite of t and means "False".



          Generally speaking, the concepts of t and nil are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.



          Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 14 at 14:05









          NickD

          2,6691515




          2,6691515










          answered Feb 14 at 13:18









          Lorem IpsumLorem Ipsum

          1,296413




          1,296413







          • 2





            I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than nil is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil is false, and every non-nil value is true. t is a value which is true, and which has no other meaning.

            – phils
            Feb 15 at 4:36













          • 2





            I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than nil is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil is false, and every non-nil value is true. t is a value which is true, and which has no other meaning.

            – phils
            Feb 15 at 4:36








          2




          2





          I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than nil is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil is false, and every non-nil value is true. t is a value which is true, and which has no other meaning.

          – phils
          Feb 15 at 4:36






          I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than nil is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil is false, and every non-nil value is true. t is a value which is true, and which has no other meaning.

          – phils
          Feb 15 at 4:36


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Emacs Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f47822%2fmeaning-of-value-is-t%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay