hi, i have the code here in update and ...its not working idk why . can someone pls help me???

if (x.transform.rotation.eulerAngles.y == 0){
Debug.Log (“rot = 0”);
}

since angles are in float it’s value might not be exactly 0, try debugging for a little more space

if (x.transform.rotation.eulerAngles.y >= 0 && x.transform.rotation.eulerAngles.y < 10){ Debug.Log ("rot = ~0"); }