Home / Definitions / Relational Operator

Relational Operator

Webopedia Staff
Last Updated May 24, 2021 7:53 am

An operator that compares two values.

For example, the expression


means x is less than 5. This expression will have a value of TRUE if the variablex is less than 5; otherwise the value of the expression will be FALSE.

Relational operators are sometimes called comparison operators. Expressions that contain relational operators are called relational expressions.