I have doors that swing open clock or counter-clockwise. So that the doors don't swing open or close indefinitely, I'm using instance variables to define their open and closed positions. (That way I can pre-rotate them on the layout and then calculate the open and closed angles from that initial angle.)

If I have one door set to an initial angle of 0 - it's closed state - I tell it to set its instance variable

*OpenAngle*to Door.Angle-90. However, this produces a negative angle, and any further instructions I give it leaves C2 confused about what to do.

What's a good way to efficiently recalculate this angle to a positive value of 270? (Sorta like going backwards in time...for instance, going from 1 o'clock back to 12 and not some odd time like negative 2 o'clock.)

Thanks!