True and False values with If and else

I’m trying to make a script were if the collider of one object tagged as “select” change the true and false values of a variable called “select”. Here is the code:

function OnTriggerEnter (Col : Collider)
{
	if(Col.tag == "Select")
	{
		select = true;
	}
	else
	{
		select = false;
	}
}

When it isn’t colliding with “select” should it not change back the false value? The collider tagged “select” is turned off and on useing the “e” key with this script:

enter code herefunction Update ()
{	
	if (Input.GetKey("e"))
	{
		GameObject.Find("Select").GetComponent(Collider).enabled = true;
	}
	else
	{
		GameObject.Find("Select").GetComponent(Collider).enabled = false;
	}
}

Is the script above to blame for this problem?
`

the if statement runs only when you have collision detection.
if you turn off the collider there will be no collision and the if - else statement will never run so select will never return to be false.