The relational and logical operators are described in Relational and logical operators.

Table 1. Relational and logical operators

Operator

Description

==

Equal to

!=

Not equal to

>

Greater than

<

Less than

>=

Greater than or equal to

<=

Less than or equal to

&&

Logical AND

||

Logical OR