Difference between revisions of "Boolean"
From Free Pascal wiki
Jump to navigationJump to searchLine 4: | Line 4: | ||
<br> | <br> | ||
'''Boolean''' is a logical datatype. Data of type boolean have one of only two values, either [[True|true]] or [[False|false]]. | '''Boolean''' is a logical datatype. Data of type boolean have one of only two values, either [[True|true]] or [[False|false]]. | ||
+ | |||
+ | 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 == | == See also == |
Revision as of 09:03, 27 June 2014
Overview
│
Deutsch (de) │
English (en) │
suomi (fi) │
français (fr) │
русский (ru) │
中文(中国大陆) (zh_CN) │
Boolean is a logical datatype. Data of type boolean have one of only two values, either true or false.
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 |