Euler Angle problem in If check

I am rotating my object by 90 degree over some time according to the following code.

thisTransform.RotateAround (thisTransform.position, degrees, 90*Time.deltaTime);

What I want to do is when the rotation of the object is (0,0,0), I want to do something (disable the script in the check). I print the euler angle in console and it shows (0,0,0). So according to the print value my if check must work.

`euler = transform.eulerAngles;

if(euler == Vector3(0.0,0.0,0.0) {

//(perform something)

}`

Sometimes after performing rotation, the euler.x doesn’t match the (0.0) check (I have divided my check to subchecks according to their x, y and z). When I saw in inspector against the “Rotation” values, the x value of the object is 1.001791e-05. At the same time the print statement shows it as 0.0 . I have attached the screenshot which shows my problem. As you can also see in console it misses the “XXXXXXXX” check because of the different value in inspector. Help me with the correct angle so I can perform my if check according to its (0,0,0) rotation.
Thanks

You can use Mathf.Round() to round a float to an int, but consider doing something like:

if (Quaternion.Angle(transform.rotation, Quaternion.identity) < some_small_value) 

or

if (Vector3.Angle(transform.forward, Vector3.forward) < some_small_value)