I am working with the following for loop:
for (int intPrjName = 0; intPrjName < [arrPrjName count]; intPrjName++)
I have a if/else stat
Assume C is an Array where n is an int or NSNumber type caste to int
for(n in C){
if{n equal to 10)
dostuff }
else{ doOtherStuff } }
}
The good thing about this approach you can inore the size of the Array.
Look at the docs for Enumeration Glass