how to stop animation loop?

i have this java script that does what i need however i cant figure out how to stop the animation looping after it has played once.
var animation_bool : boolean ;

      function Update()
                     {

          if(animation_bool == true)
                     {
                 animation.Play("Sword_Swing1");

                     }


          if(Input.GetButtonDown("mouse0"))
                     {
              animation_bool = true;

                     }

             }

Hi, for something like a sword swing you wouldn’t want to use a loop. You need to set the wrap mode of each animation you use.

Check these references out:

and