TRIGGER SOMETHING IF GAMEOBJECT HAS ROTATED A CERTAIN AMOUNT OF DEGREES (SOLVED)

Hello! I want the player to activate something when looking past a 0, 90++,0 degrees.
something like this below. its a bit confusing and maybe render.visable might help or i dont know. im pretty new :wink: cheers.

if(Player.Transform >= 0, 90, 0)
{
activator.SetActive (true);
}

if(Player.Transform >= 0, -90, 0)
{
activator.SetActive (false);
}

EDIT: I believe its actually forward

        if (transform.forward.y >= 90)
        {
            //do stuff
        }

Well, thanks for your help but it didnt work. i figured it out my self

if (Player.transform.rotation.eulerAngles.y <= 90)
{
Debug.Log(“Hello”);
}
}