High Quality Content by WIKIPEDIA articles! In computer science a relational operator is a programming language construct or operator that tests some kind of relation between two entities. These include numerical equality (e.g., 5 = 5) and inequalities (e.g., 4 ? 3). In programming languages that include a distinct boolean data type in their type system, like Java, these operators return true or false, depending on whether the conditional relationship between the two operands holds or not. In other languages such as C, relational operators return the integers 0 or 1. An expression created using a relational operator forms what is known as a relational expression or a condition. Relational operators are also used in technical literature instead of words.