Type:Bool: Difference between revisions

From Resonite Wiki
mNo edit summary
touchup
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A bool (or boolean) is a [[Value Variable | value variable]] that can be either '''true''' (on) or '''false''' (off)
A '''bool''' (or boolean) is a [[value type]] that can be either <code>True</code> (on) or <code>false</code> (off)


== Usage ==
== Usage ==
Use this type whenever you need to store a value that can only be in one of two states.
Use this type whenever you need to store a value that can only be in one of two states.


In the underlying runtime (.net), this takes the same amount of memory as a [[Type:Byte | byte]]
{{BoolTypes}}
== Related Types ==
* [[Type:Bool2 | bool2]]
* [[Type:Bool3 | bool3]]
* [[Type:Bool4 | bool4]]
* [[Type:bobool3ol|bobool3ol]]
 
[[Category:Types]]
[[Category:Types:Value]]

Latest revision as of 17:25, 18 April 2025

A bool (or boolean) is a value type that can be either True (on) or false (off)

Usage

Use this type whenever you need to store a value that can only be in one of two states.

Related types