I need to control several values in my app and I'm trying to do so in this way
but it looks that only the 1st condition is checked, the other are ignored.
Is it possible to use this kind of control in objective-c? If not, how to do something that behaves like that?
I'm checking if some text fields are filled before to send the data.
Code:
if(condition 1)
{
//do something1
}
else if(condition 2)
{
//do something2
}
else if(condition 3)
{
//do something3
}
else
{
//do something else
}
Is it possible to use this kind of control in objective-c? If not, how to do something that behaves like that?
I'm checking if some text fields are filled before to send the data.