1A statement outside every function
An if, a for or a call cannot stand alone at the top of the file. Move it into setup() or loop().
int count = 3;
if (count > 2) {
count = 0;
}
void setup() {
Serial.begin(9600);
Serial.println(count);
}
void loop() {
}int count = 3;
void setup() {
Serial.begin(9600);
if (count > 2) {
count = 0;
}
Serial.println(count);
}
void loop() {
}Mokxi’s build tab says: This line is outside every function