Relational operators
Relational operators compare two values to provide a true or false result. If the statement is True, a value of 1 is returned. If False, 0 is returned. There are six relational operators; each has two different symbols.
The following table lists the relational operators.
Symbol | Operator | Example |
---|---|---|
EQ, == | equal | tag_1 == tag_2 |
NE, <> | not equal | tag_1 <> tag_2 |
LT, < | less than | tag_1 < tag_2 |
GT, > | greater than | tag_1 > tag_2 |
LE, <= | less than or equal to | tag_1 <= tag_2 |
GE, >= | greater than or equal to | tag_1 >= tag_2 |
Provide Feedback