When you split string than you will get array and you should access single value by array element as follows
s="1,2,3,4";
string arr[] = s.split(',');
for(int i =0; i< arr.Length-1;i++)
{
if(arr[i].ToString() == "2")
{
//put your code here if element value is 2
}
}
hope this helps you