Animation.normalizedTime problems

I have an animation called wp (weak punch) which is 12 frames long. The weak punch animation contains a startup period [frames 1 to 5] an active period [frames 6 to 7] and a recovery period [frames 8 - 12].

On the active frames [6 to 7] I want to place a collision box where the punch takes place. I am trying to use normalizedTime like this:

        if(animation["wp"].normalizedTime > (6.0 / 12.0) && 
              animation["wp"].normalizedTime < (8.0 / 12.0) )
        {
            Debug.Log("IT WORKS!"); //actually it doesnt :_(
                    //create hit box here
        }

The if statement never gets activated.

(6.0 / 12.0) = .5

(8.0 / 12.0) = 0.66666666666666666666666666666667

I used Debug.Log(Animation["wp"].normalizedTime) in Update() and it shows values between .5 and .667. My if statement should evaluate to true but it never does.

I tried using f's (for Float) next to the numbers. Didn't make a difference.

Want can I be doing wrong?

if((animation["wp"].normalizedTime > (6.0 / 12.0)) && (animation["wp"].normalizedTime < (8.0 / 12.0)) )
        {
            Debug.Log("IT WORKS!"); //actually it doesnt :_(
                    //create hit box here
        }

Try this. =). I think you need to actually put the parentheses around the amounts...

Is there a way to delete a question? After some more frustrating debugging I found out why the if statement never evaluated to true. It had to do with the way my script was written. Nothing wrong with normalizedTime. Sorry.