1if (condition1) {
2 // Tue Task 1
3}
4else if (condition2) {
5 // Tue Task 2
6}
7else {
8 // Tue Task 3
9}
1if (x > 120) {
2 digitalWrite(LEDpin, HIGH);
3}
4
5if (x > 120) {
6 digitalWrite(LEDpin, HIGH);
7}
8
9if (x > 120) {
10 digitalWrite(LEDpin, HIGH);
11}
12
13if (x > 120) {
14 digitalWrite(LEDpin1, HIGH);
15 digitalWrite(LEDpin2, HIGH);
16}
17// Alle Anweisungen sind korrekt
1The #if condition is evaluated only at compile time. The "if" is evaluated at run time.