thanks KDuke, but i don´t know why?

that is the animation code:

Code:
IF (my.animblend == equip) {
		var i= 0;
		ent_animate(my,"equip",my.animate,0);
		my.animate += 5 * animation_speed * time;
		my.currentframe = equip;
		IF (my.animate >= 60) 
		{
			ent_animate(my,"equip",60,0);
			my.animate = 60;
			i= 1;
		IF (equip_sword == 1)	{my.blendframe = stand;} ELSE { my.blendframe = idle;}
			IF (my.move_x != 0 || my.move_y !=0) {
			IF (key_shift == 1) { my.blendframe = walk; } ELSE { my.blendframe = run; }
			}
		}
	}


i tried it with IF(my.animate...)
but it doesn´t work.
what do i wrong?