newbie programme issues

Hi guy's, i am trying to do my first project and i am getting the following error code;

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560

I cant find any way around it, please help.

See my code below;

// simple led on/off via breadboard switch

int ledPin = 13; // led connected to pin 13
int switchPin = 8; // switch connected to pin 8

void setup()
{
pinMode (ledPin, OUTPUT); // pin 13 is output
pinMode (switchPin, INPUT); // pin 8 is input
ledPin LOW; //default led to low
}

void loop()
{

if (switchPin == HIGH) // if pin 8 reads high

{
digitalWrite (ledPin, HIGH); // sets led to high
}

else // if led reads low

{
digitalWrite (ledPin, LOW); // sets led to lows
}

}

if  (switchPin == HIGH)

It seems unlikely that 8 will ever equal 1

Please post the full error message

CraigJovanovic:
ledPin LOW; //default led to low

if (switchPin == HIGH) // if pin 8 reads high

These should be:

digitalWrite(ledPin, LOW);

and

if (digitalRead(switchPin) == HIGH)

Next time you post code put it in code tags (top left button </>)
Also in the Arduino IDE pressing ctrl-t indents your code nicely for easier reading.

Thank you kindly, that has done the trick.