Boolean Type

A Boolean primitive type value is one of the logical truth-values represented by the standard JADE identifiers true and false.

JADE provides standard operators that take Boolean values as operands, and produce a Boolean result. These operators include the logical:

Boolean values can also be produced by applying relational operators to operands of other types. JADE provides the standard relational operators listed in the following table.

Operator Description
= Equal to
< Less than
> Greater than
>= Greater than or equal to
<= Less than or equal to
<> Not equal to

A relational operation consists of two operands separated by a relational operator. If the relation is satisfied, it has the value true. If the relation is not satisfied, it has the value false. The result of a relational operation is therefore a Boolean value.

The following example shows the use of the Boolean primitive type.

isMarried(): Boolean;
begin
    return spouse <> null;
end;

For details about the method defined in the Boolean primitive type, see "Boolean Method", in the following subsection. For details about converting primitive types, see "Converting Primitive Types", in Chapter 1 of the JADE Developer’s Reference.