Type:Bool: Difference between revisions

From Resonite Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
A bool (or boolean) is a [[Value Type | value]] variable that can be either '''true''' (on) or '''false''' (off)
A bool (or boolean) is a [[Value Type | value]] type that can be either '''true''' (on) or '''false''' (off)


== Usage ==
== Usage ==

Revision as of 18:07, 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