Difference between revisions of "Boolean"
From Free Pascal wiki
Jump to navigationJump to searchm |
(sizeof) |
||
Line 2: | Line 2: | ||
== Overview == | == Overview == | ||
− | '''Boolean''' is a logical datatype. Data of type boolean has one of only two values, either [[True|true]] or [[False|false]]. | + | '''Boolean''' is a logical datatype. Data of type boolean has one of only two values, either [[True|true]] or [[False|false]]. I Boolean variable is 1 byte in size. |
The '''true''' value is used to indicate a comparison or test was successful; the '''false''' value is used to indicate a comparison or test was not successful. | The '''true''' value is used to indicate a comparison or test was successful; the '''false''' value is used to indicate a comparison or test was not successful. |
Revision as of 10:10, 12 June 2016
│
Deutsch (de) │
English (en) │
suomi (fi) │
français (fr) │
русский (ru) │
中文(中国大陆) (zh_CN) │
Overview
Boolean is a logical datatype. Data of type boolean has one of only two values, either true or false. I Boolean variable is 1 byte in size.
The true value is used to indicate a comparison or test was successful; the false value is used to indicate a comparison or test was not successful.
write (3 > 5)
FALSE
write (0 = 0);
TRUE
See also
simple data types |
|
---|---|
complex data types |