problems makin animations play based on rotation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gm130993
	if vel.x == 0 and vel.y == 0 and gun.rotation_degrees < 180 and gun.rotation_degrees > 120 :
		anim.play("idleUL")
	if vel.x == 0 and vel.y == 0 and gun.rotation_degrees < 60 and gun.rotation_degrees > 0 :
		anim.play("idleUR")
	if vel.x == 0 and vel.y == 0 and gun.rotation_degrees < 360 and gun.rotation_degrees > 300 :
		anim.play("idleDR")
	if vel.x == 0 and vel.y == 0 and gun.rotation_degrees < 240 and gun.rotation_degrees > 180 :
		anim.play("idleDL")
	elif vel.x == 0 and vel.y == 0 and gun.rotation_degrees < 120 and gun.rotation_degrees > 60 :
		anim.play("idleU")
	elif vel.x == 0 and vel.y == 0 and gun.rotation_degrees < 300 and gun.rotation_degrees > 240 :
		anim.play("idleD")

so, i’ve tried to make animations play based on the rotation, however none of thme play.
i’ve tried doing this all based on different inputs, without using rotation and the animations worked, therefore the problem is happening when i try to do it based on rotations degrees, can anyone help me