I have an arra which contains be 5 values. But I know at least on one index the value will be NULL. I've tried something like this
if ([array objectAtIndex:2]!=nil) //Right now array contains 5 values in total
{
//do something
}
But it doesn't seem to work as I know that at index 2 there is no value but still goes INTO the "if" Statement.