Enabeling components

Hi, I have a game in Unity 5. I want to enable Motion Blur component on player’s camera when player enters trigger. I cannot find anything on Google that works, so I am asking for help. script:

piblic GameObject trigger;

void OnTriggerEnter()
{ 
If(trigger.tag==trigger){
'Enable Motion blur
}
}

Thanks!

https://unity3d.com/learn/tutorials/modules/beginner/scripting/enabling-disabling-components

Also, you misspelled public. And you can’t test a tag equal a GameObject.

public MotionBlur motionBlur; // Drag the Camera in the hierarchy to the inspector.

void OnTriggerEnter(Collider other){
    if (other.tag == ???){
        motionBlur.enabled = true;
    }
}