Detecting the range between 2 angles

Hey, trying to detect the range between 2 angles and then print a message for now.

At the moment, I’m using this;
if( transform.rotation.eulerAngles.x >= 180 )

The problem with that is that, I don’t want it to be greater than or less that 180 degrees, I want it detect when it’s between 2 certain angles, like this.
alt text

I asked the question a few days ago but was unable to get an answer, I don’t think I explained it properly.
Also coding in c#

You don’t have to use that confusing Asin code. You can use Mathf.DeltaAngle(Angle1,Angle2)
Each angle can exceed 360 and it will still return 0-180 (the angle between them.)

http://unity3d.com/support/documentation/ScriptReference/Mathf.DeltaAngle.html

If you have a vector in the middle of that angle, and those at the extrimities, you can use Dot to know if it’s above or below an angle. Something like (they must be normalized)

float angleDegree = Mathf.Asin( Vector3.Dot( forward, V ) ) * Mathf.RadToDeg;