you could also use vectors to compare the angle, but that might be a bit difficult if you dont understand what vectors are (mathematically, not graphic type vectors like in flash or wtv)
angle dif should be fine for this tho, and use it in conjunction with compare if angle is clockwise/anticlockwise to conditions if you want a value between different intervals on different sides
ex: angle diff </= 5
angle (comparison angle "355 in this case") is anticlockwise to (origin angle "0 in this case")
angle diff </= 50
angle (comparison angle "50 in this case") is clockwise to (origin angle "0 in this case")
so your interval can be controllable on both sides like this, remember angle diff only returns a positive value (dont know why tho, returning a neg would be really handy so you didnt need to waste time with these clockwise conditions)