Mikroelektronika MIKROE-350 データシート

ページ / 526
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 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
147
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroBasic PRO for AVR
CHAPTER 5
Operator
Operation
=
equal
<>
not equal
>
greater than
<
less than
>=
greater than or equal
<=
less than or equal