HELP !! CodeMonkeys Joystick and Image based on its direction

Tried for weeks now and can't get it. I have Codemonkeys joystick working fine but cant figure out how to change the characters image based on what direction he is moving. Anyone run into this that can help out

Comments
e.g. Rule: If self.Rotation > 0 AND self.Rotation <= 45, change image to ...
attribute game.angle > 242 AND attribute game.angle < 292
which currently doesnt want to change pics
i have all the other angles working correctly now. Thanks to both of you for the help. CODEMONKEY U R PRO
now to figure out the down one