Im unable to figure out how to check if my List Contains a element.
for (x in chatBoxes) {
chatboxtitle = chatBoxes[x];
if (chatboxtitle==obj[ i ].from) {
//alert(obj[ i ].from + " YES !");
} else {
//alert(obj[ i ].from + " NOPE !");
}
};
Question How does it work ? Or how to code it like If chatboxes contains obj[ i ].from then yes else no Cause at this moment it only works when there is a element in the Chatboxes List... If there is nothing then happens nothing