Check if any collision points equal something

I just want the bit of code to check all the contact points, and set a variable to true if at least one of those points meets a requirement, and if none of the points are meeting that requirement, to set a variable to false.

Here’s the empty set up I currently have since I don’t even know how to try to do this, since I’m still new to arrays.

function OnCollisionStay(collision : Collision) {
        for (var contact : ContactPoint in collision.contacts)
            {
           //Things go here
            }
    }

Any help would be greatly appreciated.

You’re on the right track.

function OnCollisionStay(collision : Collision) {
var someCondition = false;
       for (var contact : ContactPoint in collision.contacts)
           {
if (contact.whateverYouAreTestingFor) {
someCondition = true;
break; //now that one is true, there's no point in checking the rest of them, so break out of the for loop
}
           }
if (someCondition) {
//now do whatever you do
}
   }

Thanks!