How Would i toggle the LookAt Off, so object faces origin

Hi Community, Im Learning Boolean’s. And Im trying to get the LookAt to toggle Off, Ive Got first bit right I think, but not sure to put at the bottom. thanks in Advance

#pragma strict

var toggle : boolean;
var target : Transform;

function Start () {

}

function Update () {
	if (Input.GetButtonDown("Fire1"))
		toggle = !toggle;
		
	if (toggle){
		print("Toggled ON");
		transform.LookAt(target);
	}
	else
	if (Input.GetButtonUp("Fire1")){
	
		if (!toggle){
        print("Toggled OFF");
        
        }
    }
}

you wrote

if (toggle){

this means if toggle is true now tell me where it is that you assigned toggle=true?
you have never assigned toggle to true so of course it will not work