Reputation: 1337
I am populating an HTML control using a JavaScript while loop. I need to exclude a string value from the population. I am trying this code but it is not working. What am I doing wrong here?
function getWebPropertiesSucceeded()
{
var user = groupOwnerUsers.getEnumerator();
while (user.moveNext())
{
if (user.get_current().get_title() != 'gps\ims sharepoint site collectors')
{
AddRowToTable(user.get_current().get_title());
}
}
}
the gps\ims sharepoint site collectors
value is still being added to my control. How can I fix this problem?
Upvotes: 1
Views: 358