Boolean: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (WisdomBot moved page Boolean to Boolean/en: Moved to {{Multipage}} compliant page name. This action was perfomed by a bot.)
m (Multipage removal)
Line 1: Line 1:
{{langsp}}
{{LanguageBar}}
 


A '''boolean''' value is a toggle used in programming that is inherently exclusively either "on" or "off". When ''enabled'' it is denoted with <code>true</code> or <code>1</code>, and with <code>false</code> or <code>0</code> when ''disabled'', depending on the syntax of the language being used.
A '''boolean''' value is a toggle used in programming that is inherently exclusively either "on" or "off". When ''enabled'' it is denoted with <code>true</code> or <code>1</code>, and with <code>false</code> or <code>0</code> when ''disabled'', depending on the syntax of the language being used.
Line 14: Line 15:
* [[QC|.QC]] files
* [[QC|.QC]] files
* [[Studiomdl Data|.SMD]] files
* [[Studiomdl Data|.SMD]] files
[[Category:Glossary]]

Revision as of 05:13, 12 July 2024

English (en)Deutsch (de)Español (es)Hrvatski (hr)Русский (ru)中文 (zh)Translate (Translate)


A boolean value is a toggle used in programming that is inherently exclusively either "on" or "off". When enabled it is denoted with true or 1, and with false or 0 when disabled, depending on the syntax of the language being used.

Its use varies in different areas of the engine:

Certain file types used in Source also do not typically use booleans: