Difference between revisions of "Boolean"

From Lazarus wiki
Jump to navigationJump to search
(language, formatting)
m
Line 1: Line 1:
 +
{{Boolean}}
 +
 
== Overview ==
 
== Overview ==
{{Boolean}}
 
<br>
 
<br>
 
 
'''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]].
  

Revision as of 21:47, 21 July 2015

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.

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


navigation bar: data types
simple data types

boolean byte cardinal char currency double dword extended int8 int16 int32 int64 integer longint real shortint single smallint pointer qword word

complex data types

array class object record set string shortstring