Animations in booleans loop?

var isClipPlaying : boolean;

function Start () { }

function Update () {
     if (Input.GetButtonDown ("Fire1")) {
          isClipPlay = !isClipPlaying;
     }
     if (isClipPlaying)
          animation.Play("myClip");
}

myClip repeats. How can it be fixed?

When you do not want animations to loop anymore, set the animation wrap mode to Once.

animation.clip.wrapMode = WrapMode.Once;

Unity Script Reference: Animation - WrapMode