string[] valueArray = new string[50];
int numberOfValues = valueArray.GetLength();
for (int i = 0; i < numberOfValues; i++)
{
if (valueArray[i] == "bangalore")
{
valueArray[i].Click();
}
}