Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Less than operator

From Coderwiki
Revision as of 10:25, 9 August 2025 by Dylan (talk | contribs) (replace 'conditional operator' with 'comparison operator')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

One common comparison operator is the less than operator.

This operator will return true if the value on the left is less than the value on the right of the operator.

Syntax

In most languages, the less than operator is represented by a < symbol.

Example

boolean a = 4 < 6; // true
boolean b = 6 < 5; // false