Lektion 2 Logische Operatoren

This commit is contained in:
2023-09-28 11:20:54 +02:00
parent 4c00f4785c
commit 7e705bc6cc
3 changed files with 53 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ void draw() {
} else if (d > 50 && touched == true) {
d--;
}
// switch between increasing and decreasing
if (touched == true && d == 50) {
touched = false;