Boolean: Difference between revisions
Jump to navigation
Jump to search
Thunder4ik (talk | contribs) m (→top: Unicodifying) |
(Preparing page for move. This action was perfomed by a bot.) |
||
Line 1: | Line 1: | ||
{{ | {{langsp}} | ||
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 13: | Line 14: | ||
* [[QC|.QC]] files | * [[QC|.QC]] files | ||
* [[Studiomdl Data|.SMD]] files | * [[Studiomdl Data|.SMD]] files | ||
Revision as of 12:23, 12 January 2024
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:
- C++ code generally uses
true / false
- Materials use
1 / 0
- Weapon Scripts use
1 / 0
- .VMF files use
1 / 0
- .DMX files Todo: Verify how, and which form
Certain file types used in Source also do not typically use booleans: