if/else if statement


i need control several values in app , i'm trying in way
code:
  if(condition 1)  {     //do something1  }  else if(condition 2)  {     //do something2  }  else if(condition 3)  {     //do something3  }  else  {     //do else  }  
but looks 1st condition checked, other ignored.
possible use kind of control in objective-c? if not, how behaves that?
i'm checking if text fields filled before send data.
 

post real code. suggesting works normal c there must specific code. of course if condition 1 true we'd not expect of other conditions checked. if condition 1 true explain behaviour seeing.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Has to be the funniest headline ive ever seen

Man Brings Goat to Apple Store and has Pizza Delivered

Elusive Ninja: The Shadowy Thief - Can you survive the fast-paced ninja chaos?