We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e26538a + 0f2b1ab commit 0e7039bCopy full SHA for 0e7039b
Language/Structure/Control Structure/else.adoc
@@ -49,17 +49,14 @@ else {
49
Below is an extract from a code for temperature sensor system
50
[source,arduino]
51
----
52
-if (temperature >= 70)
53
-{
54
- // Danger! Shut down the system
+if (temperature >= 70) {
+ // Danger! Shut down the system.
55
}
56
-else if (temperature >= 60) // 60 <= temperature < 70
57
58
- // Warning! User attention required
+else if (temperature >= 60) { // 60 <= temperature < 70
+ // Warning! User attention required.
59
60
-else // temperature < 60
61
62
- // Safe! Continue usual tasks...
+else { // temperature < 60
+ // Safe! Continue usual tasks.
63
64
65
0 commit comments