Programing error with stepper/photocell

hey all i need some help with this code

getting this error
sketch_mar19b:28: error: ‘else’ without a previous ‘if’

any help would be appreciated
thanks

#define NIT 0
#define DAY 1
int state = 0;
#include <Stepper.h> // Include the ‘Stepper’ Library
Stepper small_stepper(300, 8,10,9,11);

void setup()
{
Serial.begin(9600); // for debugging messages
Serial.println("Start ");
}

void loop()
{
// MAKE MEASUREMENTS
int light = analogRead(A0); // assume 0 = dark and 1023 is bright

// CALCULATE DIRECTION
if (light > 200) state = DAY;
if (light < 100) state = NIT;

// feedback
Serial.print("L: ");
Serial.println(light);
Serial.print("Mode: ");
Serial.println(state);

else if (state == DAY); // start window open
{
small_stepper.setSpeed(100); // Set the speed, you can play around with this.
small_stepper.step(1000); // Number of steps to go clockwise
}
if (state == NIT); //close the window
{
small_stepper.setSpeed(100); // Set the speed to half the above one
small_stepper.step(-1000); // Go the same number of steps, but this time anti-clockwise
}
delay(1000);
}

sorry this is the correct one i am getting error

#define NIT 0
#define DAY 1
int state = 0;
#include <Stepper.h> // Include the ‘Stepper’ Library
Stepper small_stepper(300, 8,10,9,11);

void setup()
{
Serial.begin(9600); // for debugging messages
Serial.println("Start ");
}

void loop()
{
// MAKE MEASUREMENTS
int light = analogRead(A0); // assume 0 = dark and 1023 is bright

// CALCULATE DIRECTION
if (light > 200) state = DAY;
if (light < 100) state = NIT;

// feedback
Serial.print("L: ");
Serial.println(light);
Serial.print("Mode: ");
Serial.println(state);

if (state == DAY); // start window open
{
small_stepper.setSpeed(100); // Set the speed, you can play around with this.
small_stepper.step(1000); // Number of steps to go clockwise
}
else if (state == NIT); //close the window
{
small_stepper.setSpeed(100); // Set the speed to half the above one
small_stepper.step(-1000); // Go the same number of steps, but this time anti-clockwise
}
delay(1000);
}

It's the semicolon:

  if (state == DAY);

Remove it there, and anywhere else you use it after an "if" or "else" with brackets.

-br

thanks br ... it works now