if (transform.rotation == Vector3(0,0,0)) doesn't work!

Okay, So i'm trying to print text when my camera reaches a curtain rotate position, ideally I want to print text between a value range, like instead of just 0, 0 up to 1. I tried this script, but the console just won't print my text ever, just prints the else text even when the transform.rotation is dead on Vector3(0,0,0) ! whats wrong with the script and how can get it to look between a range rather than just 0.

function Update()
    {
        if(transform.rotation == Vector3(90,180,0))
    {
        print("America");
    }
       else
    {
        print("failed!");
    }

}

thanks - caius

You are trying to compare a Vector3 with a Quaternion.

I think what you really want is:

if(transform.eulerAngles == Vector3(90,180,0))

i have the same problem…i need to launch game when player looks at 3d text… :S any ideas???