Boolean

From SCAR Divi Manual
Revision as of 15:03, 25 June 2011 by Freddy (talk | contribs) (Created page with "==Description== Boolean is a basic type which can hold only 2 values. False (0) and True (1). Conditional code constructs use boolean values to determine what action to p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Boolean is a basic type which can hold only 2 values. False (0) and True (1). Conditional code constructs use boolean values to determine what action to perform.

Example

var
  Value: Boolean;
begin
  Value := True;
  if Value = True then
    WriteLn('Value was equal to True')
  else
    WriteLn('Value was equal to False');
end.