Instructions

202Compiler
© 2013 Conrad Electronic
Operator
Description
Example
Result
variable++
first variable value, after access variable
gets incremented by one (postincrement)
a++
a
variable--
first variable value, after access variable
gets decremented by one (postdecrement)
a--
a
++variable
value of the variable gets incremented by
one before access (preincrement)
++a
a+1
--variable
value of the variable gets decremented by
one before access (predecrement)
--a
a-1
These operators are normally not a part of a Basic dialect and have their origin in the world of C
inspired languages.
4.3.5.5 Comparison Operators
Comparison operators are allowed for Single and Integer data types.
Operator
Description
Example
Result
<
smaller
1 < 2
2 < 1
2 < 2
1
0
0
>
greater
-3 > 2
3 > 2
0
1
<=
smaller or equal
2 <= 2
3 <= 2
1
0
>=
greater or equal
2 >= 3
3 >= 2
0
1
=
equal
5 = 5
1 = 2
1
0
<>
not equal
2 <> 2
2 <> 5
0
1
4.3.6 Control Structures
Control structures allow to change the program completion depending on expressions, variables or
external influences.
4.3.6.1 Do Loop While
With a Do ... Loop While construct the instructions can depending on a condition be repeated in a
loop: