code:var Contacts = ChatWnd.Contacts; var e = new Enumerator(Contacts); for(; !e.atEnd(); e.moveNext()) Contact = e.item(); if("someemail@someehost.com" == Contact.Email){ //do whatever }