Relational Operators

Use relational operators to test equality or inequality of expressions. All relational operators return TRUE or FALSE.

Operator Operation
= equal
<> not equal
> greater than
< less than
>= greater than or equal
<= less than or equal

All relational operators associate from left to right.

Relational Operators in Expressions

The equal sign (=) can also be an assignment operator, depending on context.

Precedence of arithmetic and relational operators was designated in such a way to allow complex expressions without parentheses to have expected meaning:

 if aa + 5 >= bb - 1.0 / cc then   ' same as: if (aa + 5) >= (bb - (1.0 / cc)) then
   dd = My_Function()
 end if
Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
Want more examples and libraries? 
Find them on LibStock - A place for the code