mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
A bool (or boolean) is a [[Value Type | value]] | A bool (or boolean) is a [[Value Type | value]] type that can be either '''true''' (on) or '''false''' (off) | ||
== Usage == | == Usage == |
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
A bool (or boolean) is a [[Value Type | value]] | A bool (or boolean) is a [[Value Type | value]] type that can be either '''true''' (on) or '''false''' (off) | ||
== Usage == | == Usage == |
A bool (or boolean) is a value type that can be either true (on) or false (off)
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