Node:True, Next:, Previous:Trim, Up:Reference



True

Synopsis


type
  Boolean = (False, True);  { built-in type }

Description

True is one of the two Boolean values and is used to represent a condition which is always fullfilled. For example, the expression 1 = 1 always yields the value True. It is the opposite of False. True has the ordinal value 1.

Conforming to

True is defined in ISO 7185 Pascal and supported by all known Pascal variants.

Example


program TrueDemo;

var
  a: Boolean;

begin
  a := 1 = 1;  { yields True }
  WriteLn (Ord (True));  { 1 }
  WriteLn (a);  { True }
  if True then WriteLn ('This is executed.')
end.

See also

Boolean (Intrinsic), False, Boolean.