Report abuse

1
2
3
4
5
6
7
8
areThereAnyXs1 = name.indexOf('x'); //see if there are any lowercase xs in the name
areThereAnyXs2 = name.indexOf('X'); //see if there are any uppercase Xs in the name
			
if ((areThereAnyXs1 != CHAR_NOT_FOUND_VALUE) || (areThereAnyXs2 != CHAR_NOT_FOUND_VALUE)) 
//if there are Xs in the user name, change anyXsInName to true
{
   anyXsInName = true;
}