Simple programming but still errors...

This is my first time to test programming and im following instructions on a book that followed with the arduino kit that i bought. i'm trying to make some leds blink when i turn on a switch but i keep on getting error messages that get on my nerves. Heres the code that i wrote

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

and these are the errors i keep receving

sketch_oct28c.ino: In function 'void loop()':
sketch_oct28c.ino:12:3: error: 'switchstate' was not declared in this scope
sketch_oct28c.ino:23:5: error: expected ';' before 'digitalWrite'
sketch_oct28c.ino:27:1: error: expected ';' before '}' token

Please help much appreciated

switchstate is different from switchState.

The delay(250) lines need a closing ';'

Did you read the error messages?

Thank you, now that you explain it i feel stupid. All these commas messed up my brain makin it difficult reading them. i'm sorry :confused:

No problem at all. :wink: