right now I’m doing something like this to match objects in an array:
for (var key in users)
{
if (users[key].userID==session)
{
//do whatever
}
}
but I need to figure out how many times this matches, if it only matches once, then I want it to trigger the event (where it says “//do whatever”)
This quits looking as soon it finds 2 matches