Relational operator |
In computer programming languages, a relational operator is a lexical unit used to express a relation, such as equality or greater than , between two Expression_(programming)s. Two suitable expressions combined with a relational operator often form a relational expression or condition in a programming language.
For example, in many programming languages, the relational operator that tests the equality of two expressions has this form:
X == Y
Relational operators are usually written in infix notation, if supported by the programming language, which means that they appear between their Operands (the two expressions being related). However, some programming languages, such as Lisp programming language, use prefix notation, as follows:
(= X Y)
Here are some of the most common relational operators in use in programming languages:
=See also=
|
|