Maybe try testing against .frame ?
If my.frame > anim start frame && my.frame < anim end frame
Also, just a suggestion, don't limit the upper frame boundary, make a check to see if the animation already played some function this loop and reset it after the animation loop ends. This way, no matter what, the function will trigger at 80% or above.
PS.: Keep in mind, that working with animate functions means working with percentage, while accessing the ".frame" skill means direct access to the current frame number that is being played (no matter if its in the middle of interpolation between the next frame, I think)... so you could trigger it every time on a specific frame.