Relational Operators
Use relational operators to test equality or inequality of expressions. All relational operators return TRUE
or FALSE
.
All relational operators associate from left to right.
Relational Operators Overview
Operator | Operation |
---|---|
= | equal |
<> | not equal |
> | greater than |
< | less than |
>= | greater than or equal |
<= | less than or equal |
Relational Operators in Expressions
Precedence of arithmetic and relational operators is designated in such a way to allow complex expressions without parentheses to have expected meaning:
a + 5 >= c - 1.0 / e // → (a + 5) >= (c - (1.0 / e))
Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
What do you think about this topic ? Send us feedback!