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

Mail will not Quit when shutting down

MacBook Air 2011 Reviews

What's the max amount of RAM an iMac can have to run BootCamp & Parallels Windows 7?