Problem with new project

What's wrong? It says expected ';' token before ')' token

void loop() {
for (buttonState == HIGH) {
buttonState = digitalRead(buttonPin);
digitalWrite(led1, HIGH);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
digitalWrite(led4, LOW);
digitalWrite(ledGoal, HIGH);
digitalWrite(ledGoal, LOW);

for is a loop and looks like this

for( int i = 0; i < 10; i++)


your for statement has the wrong number of arguments, hence, the ; token is expected before the ) token.


for ( ; buttonState == HIGH; ) ...

to be honest, I'd use a while() loop if it were me. I'm not really sure what the rest of the coding looks like or what you're trying to do, but a while() loop just looks to me like it would work better.

buttonState = digitalRead(buttonPin);
while (buttonState == HIGH) ...
for (buttonState == HIGH)

Did you perhaps mean

if (buttonState == HIGH)