BoolToStr

From SCAR Divi Manual
Jump to: navigation, search

Definition

function BoolToStr(Bool: Boolean): AnsiString;

Availability

SCAR Divi 3.00 > Current

Description

Converts a given boolean value Bool to a string. 'True' is returned if Bool is true and 'False' if Bool is false. This action can be reversed with StrToBool.

Example

begin
  WriteLn(BoolToStr(True));
  WriteLn(BoolToStr(False));
end.

Output:

True
False

See Also