Initialization of same variable with different values

I am taking Light_status as a variable and initializing it as: int Light_status.

I am writing following code:

void loop()
{
// put your main code here, to run repeatedly:
sensorvalue = analogRead(sensorPin);

Serial.println(sensorvalue);
if (sensorvalue < threshold)
{
Serial.println("LED light on");
digitalWrite(led1,LOW);
Light_status=50;
digitalWrite(led2,HIGH);
Light_status=100;
digitalWrite(led3,LOW);
Light_status=50;
digitalWrite(led4,HIGH);
Light_status=100;
}

else
{
digitalWrite(led1,HIGH);
Light_status=50;
digitalWrite(led2,LOW);
Light_status=10;
digitalWrite(led3,HIGH);
Light_status=50;
digitalWrite(led4,LOW);
Light_status=10;
}

Leds are working accordingly but the value of Light_status is printing as 10 instead of 50.

Why is it so?

if (sensorvalue < threshold)
  {
    Serial.println("LED light on");
    digitalWrite(led1,LOW);   
    Light_status=50;
    digitalWrite(led2,HIGH);
    Light_status=100;
    digitalWrite(led3,LOW);
    Light_status=50;
    digitalWrite(led4,HIGH);
    Light_status=100;          
  }

Since you do nothing else with Light_status here in this piece of code, all the times you set it's value except the last one are totally useless.

value of Light_status is printing as 10 instead of 50.

The code you posted doesn't print Light_tatus anywhere. If you want help post a complete code that compiles and runs so it can be tested.