Stupid question, but bow do I access a variable that is inside the same object my script is?

I want to access isTrigger in a collider. The collider and my script are in the same object. Help?

if (collider.isTrigger) { … }

var MyCollider : (ColliderType);

MyColldier = GameObject.Find(“ObjectName”).GetComponent ( ColliderType );

MyCollider.isTrigger = true ;

Is that what you are trying to do ? I am a bit confused as to what you need help with.