Sign in Join
FPDoc Onlineexperiment

CompareBoolean function

In unit LazUtilities

Compares the specified Boolean values.

Declaration

pascal
function CompareBoolean(b1: Boolean; b2: Boolean): Integer

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).

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.