User manual
mikroBasic PRO for PIC32
MikroElektronika
217
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
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