Type:Bool: Difference between revisions

From Resonite Wiki
imported>ProbablePrime
No edit summary
 
use template
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="wikitable"
A bool (or boolean) is a [[Value Type | value]] type that can be either '''true''' (on) or '''false''' (off)
|-
 
| Color
== Usage ==
| Type
Use this type whenever you need to store a value that can only be in one of two states.
|-
 
| style="background-color:{{Boolean-color}}" |
In the underlying runtime (.net), this takes the same amount of memory as a [[Type:Byte | byte]]
| Boolean
 
|}
{{Template:BoolTypes}}
A boolean\bool Is a true or false value.
[[Category:Types]]

Latest revision as of 22:37, 14 January 2024

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.

In the underlying runtime (.net), this takes the same amount of memory as a byte

Related Types