![background image](http://html.mh-extra.com/html/conrad/c-control-pro-mega-series/c-control-pro-mega-series_manual_2654183105.webp)
96
Compiler
© 2008 Conrad Electronic
Operator
Description
Example
Result
v+
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
5.2.5.5
Comparison Operators
Comparison operators are allowed for float 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
5.2.5.6
Logical Operators
Logical operators are only allowed for Integer data types. Any value unequal null is meant to be a
logical
1.
Only null is valid as logical
0
.
Operator
Description
Example
Result
&&
logical And
1 && 1
5 && 0
1
0
||
logical Or
0 || 0
1 || 0
0
1
!
logical Not
!2
!0
0
1
Summary of Contents for C-Control Pro Mega Series
Page 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Page 9: ...VIII Inhalt 2008 Conrad Electronic ...
Page 10: ...Part 1 ...
Page 17: ...Part 2 ...
Page 23: ...Part 3 ...
Page 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Page 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Page 58: ...Part 4 ...
Page 91: ...82 IDE 2008 Conrad Electronic ...
Page 92: ...Part 5 ...
Page 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Page 136: ...Part 6 ...
Page 231: ...Part 7 ...
Page 240: ......