I haven't looked at the capx either. But I'd recommend a nested IF. It will use a few more resources, but could resolve your problem.
Also, always specify the between. The reason for this is that when looking at angles, -1 = 359, -60 = 300, 2 = 362, etc...
IF (some condition)
ELSE IF (next condition)
-code
ELSE IF (next condition)
- code
By using this you will also know which condition is met, and can debug better. Because in all likelihood, two or more of your conditions are true.
You can also do some smart algorithm when checking your angles, something like:
IF angle < 0 THEN SET angle = angle + 360
Then after ensuring that they are always between 0 and 360 apply your conditions.