type Boolean = (False, True); { built-in type }
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.
True
is defined in ISO 7185 Pascal and supported
by all known Pascal variants.
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.