I do not understand this error message asking me to put a parenthesis

Hello everyone!
I am new to arduino, and I was creating a project just like the one on http://jacksondolan.com/blag/2013/10/16/bringing-jarvis-home/. I tried his code (exactly as it is), but I am getting an error message telling me to put a random parenthesis before the "powerOn" statement." Adding the requested parenthesis only gives me more errors.

I have posted the offending code and the error below. Can someone help me here?

Thanks!

The code:

 case GROUP_1:
      switch (idx)
      {
      case G1_LIGHT:
      Serial.println("In Light)"
      
      powerOn=!powerOn;
      if(powerOn) {
        Serial.println("Power On");
        digitalWrite(powerPin, LOW);
        digitalWrite(13, HIGH);
      }else{
        Serial.println("Power Off");
        digitalWrite(powerPin, HIGH);
        digitalWrite(13, LOW);
      }

The error:

sketch_jan10a.cpp: In function 'void action()':
sketch_jan10a:147: error: expected `)' before 'powerOn'

You have no ; at the end of the line before that, and in that previous line your end ) is on the wrong side of the "

Serial.println("In Light)"   //wrong

Serial.println("In Light");  //right

Ah, it's always the little things that go unnoticed.
Thanks for the quick response. :slight_smile:

Yeah, it is little thinks like that, which cause $300m rockets to malfunction and crash.