Question
How to display alert only once in a for loop?
Is it possible to display an alert only once in the for loop?
for (var i = 0; i < oMarkers.length; i++)
{
if (oMarkers[i].obj.MarkerTypeId.Name == "Index")
{
alert ("text already present");
bMarkerExists = true;
break;
}
}
