Type:Bool: Difference between revisions

From Resonite Wiki
use template
touchup
 
Line 1: Line 1:
A bool (or boolean) is a [[Value Type | value]] type 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}}
 
{{Template:BoolTypes}}

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