Unity 2D, Mathf.Clamp rotation value

Hey !

I need someone who is good at Mathf.Clamp to tell me the equivalent of the Mathf.Clamp statement below.
My issue is that I want to clamp two rotations, one when my character is flipped to the right, and one when my character is flipped to the left.
Here’s the clamp statement when the character is flipped to the right and IT WORKS FINE:

if(PlayerController.flippedRight)
		{
			angle = Mathf.Clamp (angle, -50.0f, 50.0f); //Use this if character is flipped to the right
		}

Here’s the statement that I need help with, I want it to be clamped to the equivalent to the first statement.

if(PlayerController.flippedLeft)
		{
			angle = Mathf.Clamp (angle, -180.0f, -10.0f); //Use this if character is flipped to the right
		}

The main issue is that in between the rotations I want clamped (140, -160), and Clamp only lets you set min and max.

Thanks !

This assumes your angle is always in the range -180 to 180:

if (Mathf.Abs(angle) < 140)    // Correct angles whose absolute value is less than 140
{
    if (angle >= 0)    // Check which end to clamp to
        angle = 140;    // If 0-140, set to 140
    else
        angle = -140;    // Otherwise, set to -140
}