Boolean

From C64-Wiki
Jump to navigationJump to search

A Boolean, commonly shortened to bool, is a "logical operator" which in general Boolean logic, equals an integer, being 1, or 0.


In general bool logic, "True" equals 1, and "False" equals 0.


However, In BASIC, "True" equals -1, and "False" equals 0.