Boolean: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Spam...)
No edit summary
Line 1: Line 1:
A '''boolean''' is a data type that is either enabled or disabled. In code, it can be denoted by the keywords <tt>true</tt> and <tt>false</tt>. Otherwise, it is denoted as <tt>1</tt> for enabled and <tt>0</tt> for disabled.
A '''boolean''' value is either "on" or "off". When enabled it is denoted with <code>true</code> or <code>1</code>, and when disabled it is denoted with <code>false</code> or <code>0</code>.


[[Category:Glossary]]
[[Category:Glossary]]

Revision as of 06:29, 13 April 2008

A boolean value is either "on" or "off". When enabled it is denoted with true or 1, and when disabled it is denoted with false or 0.