What am I doing wrong? Boolean-Animation Help please

Good afternoon,

I am trying to have my door open after 3 levers are pulled. Everything works, except the door opening. What am I doing wrong?

Here is my Script:

var Yellow_Lever : boolean = false;

var Blue_Lever : boolean = false;

var Green_Lever : boolean = false;

 function OnTriggerStay ()

{

if ( Input.GetButtonDown("Fire1") ) 
{

  transform.animation.Play("Yellow_Lever");

     Yellow_Lever = true;

if ( Input.GetButtonDown("Fire1") ) 
{
   transform.animation.Play("Blue_Lever");
   Blue_Lever = true;


if ( Input.GetButtonDown("Fire1") )
 {
   transform.animation.Play("Green_Lever");
   Green_Lever = true;

if 
(  	
	(Yellow_Lever == true)
	(Blue_Lever == true)
	(Green_Lever == true))
	transform.animation.Play("Door_Open");

}
}
}
}

I’m not quite sure if your if statement syntax is correct. If you wish to check for multiple statements use the AND or OR operator. Try using this if statement.

if (Yellow_Lever && Blue_Lever && Green_Lever) 
    transform.animation.Play("Door_Open");

You can combine these operators in different ways as well. Say you wanted the door to open if both the yellow lever and the blue levet was pulled, but also wanted the door to open whenever the green lever was pulled.

if ((Yellow_Lever && Blue_Lever) || Green_Lever) 
    transform.animation.Play("Door_Open");