Anything wrong with my script?

What should I do? The Console says that: “Assets/Scripts/Porta.cs(15,35): error CS0119: Expression denotes a ‘type’, where a ‘variable’, ‘value’ or ‘method group’ was expected”

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Porta : MonoBehaviour {

// Use this for initialization
void Start () {
	
}

// Update is called once per frame
void Update () {

    if (transform.rotation == Vector3(90, 180, 0))
        Destroy(GetComponent<Door>());

}

}

Well for one in this line if (transform.rotation == Vector3(90, 180, 0)) you can only compare to a new Vector3(90, 180, 0). It has to be new or a previously created vector. Also as Jiak1 said you can only compare quaternion to quaternion and vector to vector. So either check if transform.eulerAngles equal to the given vector or check if transform.rotation is equal to Quaternion.Euler(new Vector3(90, 180, 0)).

Rotations are stored as Quaternion’s and positions as vector3’s you are trying to see if a quaternion is equal to a vector3 when they are two different things.