[SOLVED] Sound_Keyboard.ino:172:199: error: expected ';' before ')' token

Im pretty sure the problem is in the 'if and' statement at the bottom, but you guys know more than i do.

Error Message:

Arduino: 1.7.4 (Windows 8.1), Board: "Arduino Uno"

Using library LiquidCrystal in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10704 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src C:\Users\Mike\AppData\Local\Temp\build8927468512460420153.tmp\Sound_Keyboard.cpp -o C:\Users\Mike\AppData\Local\Temp\build8927468512460420153.tmp\Sound_Keyboard.cpp.o

Sound_Keyboard.ino: In function 'void loop()':

Sound_Keyboard.ino:172:28: error: expected primary-expression before '==' token

Sound_Keyboard.ino:172:199: error: expected ';' before ')' token

Error compiling.

/* Code by Mike4449, may or may have not been done before,I made this from scratch. It has 6 buttons, each with a different frequency, and when you push a button, the red LED will turn off and the green will turn on, then the peizo will make the
said frequency until the button is un pressed, while it is doing this, a 1602 LCD will display SOUND BOARD V1.1 and below that will be the frequency that the peizo is making.It is one of the bulkier projects that ive made. Enjoy! 6,648 BYTES, 292 BYTES DYNAMIC*/
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

int button1 = A0;
int button2 = A1;
int button3 = A2;
int button4 = A3;
int button5 = 6;
int button6 = 8;
int buzzer = 7;
int led = 9;      //green LED
int led2 = 10;     //red LED
int setupDelay = 500;
int loopDelay = 2000;
void setup()
{
  lcd.begin(16, 2);
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Made by Mike P.!");
  delay(5000);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  delay(2000);
  lcd.setCursor(0, 1);
  lcd.print("Starting Up...");
  delay(2750);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait.");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait..");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait...");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait.");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait..");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait...");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait.");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait..");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait...");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait.");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait..");
  delay(setupDelay);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Please Wait...");
  delay(2000);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("SETTING UP I/O..");
  delay(3000);
  pinMode(button1,INPUT);
  pinMode(button2,INPUT);
  pinMode(button3,INPUT);
  pinMode(button4,INPUT);
  pinMode(button5,INPUT);
  pinMode(button6,INPUT);
  pinMode(buzzer,OUTPUT);
  pinMode(led,OUTPUT); 
  pinMode(led2,OUTPUT); 
  delay(2500);
  lcd.clear();
  delay(1000);
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("Ready!");
  tone(buzzer,440);
  delay(500);
  noTone(buzzer);
}

void loop()
{
  if (digitalRead(button1) == HIGH) {
  lcd.clear();
  digitalWrite(led2,LOW);
  digitalWrite(led,HIGH);
  tone(buzzer,440);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("440 Hz");
  }
  if (digitalRead(button2) == HIGH) {
  lcd.clear();
  digitalWrite(led2,LOW);
  digitalWrite(led,HIGH);
  tone(buzzer,400);
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("400 Hz");
  }
  if (digitalRead(button3) == HIGH) {
  lcd.clear();
  digitalWrite(led2,LOW);
  digitalWrite(led,HIGH);
  tone(buzzer,360);
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("360 Hz");
  }
  if (digitalRead(button4) == HIGH) {
  lcd.clear();
  digitalWrite(led2,LOW);
  digitalWrite(led,HIGH);
  tone(buzzer,320);
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("320 Hz");
  }
  if (digitalRead(button5) == HIGH) {
  lcd.clear();
  digitalWrite(led2,LOW);
  digitalWrite(led,HIGH);
  tone(buzzer,280);
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("280 Hz");
  }
  if (digitalRead(button6) == HIGH) {
  lcd.clear();
  digitalWrite(led2,LOW);
  digitalWrite(led,HIGH);
  tone(buzzer,230);
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("230 Hz");
  }
  if(digitalRead(button1) == LOW && (digitalRead(button2) == LOW && (digitalRead(button3) == LOW && (digitalRead(button4) == LOW && (digitalRead(button5) == LOW && (digitalRead(button6) == LOW) {
  lcd.clear();
  digitalWrite(led2,HIGH);
  digitalWrite(led,LOW);
  noTone(buzzer);
  lcd.clear();
  lcd.print("SOUND BOARD V1.1");
  lcd.setCursor(0, 1);
  lcd.print("SOUND IS OFF");
  }
    
}

Sound_Keyboard.ino:172:28: error: expected primary-expression before '==' token
Sound_Keyboard.ino:172:199: error: expected ';' before ')' token

Line 172 is in error

Match brackets ( ) in this line:

  if(digitalRead(button1) == LOW && (digitalRead(button2)) == LOW && (digitalRead(button3) == LOW && (digitalRead(button4) == LOW && (digitalRead(button5) == LOW && (digitalRead(button6) == LOW) {

I did that, but now i got this:

Arduino: 1.7.4 (Windows 8.1), Board: "Arduino Uno"

Using library LiquidCrystal in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10704 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src C:\Users\Mike\AppData\Local\Temp\build8927468512460420153.tmp\Sound_Keyboard.cpp -o C:\Users\Mike\AppData\Local\Temp\build8927468512460420153.tmp\Sound_Keyboard.cpp.o

Sound_Keyboard.ino: In function 'void loop()':

Sound_Keyboard.ino:172:197: error: expected ')' before '{' token

Sound_Keyboard.ino:183:1: error: expected ')' before '}' token

Sound_Keyboard.ino:183:1: error: expected ')' before '}' token

Sound_Keyboard.ino:183:1: error: expected ')' before '}' token

Sound_Keyboard.ino:183:1: error: expected primary-expression before '}' token

Sound_Keyboard.ino:183:1: error: expected ';' before '}' token

Error compiling.

Did you match all of the missing ( ) ?

Try:

  if(digitalRead(button1) == LOW && digitalRead(button2) == LOW && digitalRead(button3) == LOW && digitalRead(button4) == LOW && digitalRead(button5) == LOW && digitalRead(button6) == LOW) {

Amazing, ok, now it works, thank you very much