[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LazUtilities' (#lazutils)

CompareBoolean

Compares the specified Boolean values.

Declaration

Source position: lazutilities.pas line 27

function CompareBoolean(

  b1: Boolean;

  b2: Boolean

):Integer;

Arguments

b1

  

Boolean value compared in the routine.

b2

  

Boolean value compared in the routine.

Function result

Numeric value for the comparison.

Description

0
Returned when b1 and b2 have the same value.
1
Returned when b1 is True.
-1
Returned as the default value (when b1 is False).

Version 4.0 Generated 2025-05-03 Home