Relational operator (source code)

= Relational operator
{wiki=Relational_operator}

A relational operator is a type of operator used in programming and mathematics that compares two values or expressions and returns a Boolean result—either true or false. Relational operators are commonly used in conditional statements and expressions to evaluate relationships between values. Here are the most common relational operators: 1. **Equal to (\`==\`)**: Checks if two values are equal. - Example: \`5 == 5\` would return \`true\`. 2. **Not equal to (\`!