Keep receiving error code "command failed in function void loop()"

I am attempting to use a momentary switch to produce blinking when depressed.
Here is my code:

int switchState = 0;
void setup(){
pinMode(3,OUTPUT);
pinMode(2,INPUT);
}
void loop(){
switchState = digitalRead(2);
if (switchState == LOW) {
digitalWrite(3, LOW);
else {
digitalWrite(3, HIGH);
delay(500);
digitalWrite(3, LOW);
delay(500);
}
}

here is my error message:
[7/29/2015, 1:25:59 PM] - Start Building
[7/29/2015, 1:25:59 PM] - CPP File Created [C:\Users\FRANCE~1\AppData\Local\Temp\build1438190759676\momentaryswitch.cpp]
[7/29/2015, 1:25:59 PM] - momentaryswitch.cpp compiled
[7/29/2015, 1:25:59 PM] - Command failed: C:\Users\FRANCE~1\AppData\Local\Temp\build1438190759676\momentaryswitch.cpp: In function ‘void loop()’: C:\Users\FRANCE~1\AppData\Local\Temp\build1438190759676\momentaryswitch.cpp:13:9: error: expected ‘}’ before ‘else’ else { ^

Ill attach a screenshot as well.

Keep receiving error code "command failed in function void loop()"

Where do you see that error message?

This is the error message:

error: expected '}' before 'else' else { ^

You can tell just looking at the code in your screenshot that you have a missing { or }
The error message tells what is missing and where.
You figure out the rest.

Pete

The last line tells you the exact problem.
From https://www.arduino.cc/en/Reference/Else:

if (pinFiveInput < 500)
{
  // action A
}
else
{
  // action B
}

If you get into the habit of putting each { and } on its own line, things like your error will stand right out.
Also, in the IDE, if you put the cursor to the right of a {, }, ( or ), the matching brace will be highlighted. This will often point out the omitted brace.

void loop(){
    switchState = digitalRead(2);
       if (switchState == LOW) 
       {
           digitalWrite(3, LOW);
       }  // missing
        else 
       {
            digitalWrite(3, HIGH);
            delay(500);
            digitalWrite(3, LOW);
            delay(500);
        }
    }

if you put the cursor to the right of a {, }, ( or ), the matching brace will be highlighted.

and if you double-click there the code block will be highlighted. (NALOPKT)

I did not know that. Very handy. Thanks UKHeliBoB.

If you get into the habit of putting each { and } on its own line

Like this

void loop(){

?

Got me. Missed that one.

@Bob: When you say it highlights the code block, do you mean all of the source lines within the block, or just to opening and closing braces of the block? I'm using 1.6.5 and all I get are the braces being highlighted.

@Jack: I am using 1.5.6-r2 on Windows 7 and double clicking after a brace highlights the lines of the source code that the brace and its partner relate to.

Thanks for your help everyone

@Bob: I'm using 1.6.5, Win 7, and that doesn't happen on my system. Wonder if that got lost between releases?