title: error: expected expression before 'else'
body: <p>I am making a button that pauses and plays a sound. Here is my coding:</p>
  
  <p>.h:</p>
  
  <pre><code>@interface RootViewController : UIViewController {
  } 
  @property (nonatomic, retain) AVAudioPlayer *theAudio;
  -(IBAction)pause;
  
  @end
  </code></pre>
  
  <p>.m:</p>
  
  <pre><code>- (void)viewDidLoad {
      NSString *path = [[NSBundle mainBundle] pathForResource:@"MathMusic1" ofType:@"wav"];
      self.theAudio = [[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL] autorelease];
      theAudio.delegate = self;
      [theAudio play];
      theAudio.numberOfLoops = -1;
  
      [super viewDidLoad];
  
  
  }
  </code></pre>
  
  <p>Now i am trying to make a button to pause this so here is that coding: (Already declared in .h)</p>
  
  <pre><code>-(IBAction)pause {
  
      [theAudio pause];
  
  
  
  
      else // expected expression before 'else'
      [theAudio play];
  
  }
  </code></pre>
  
  <p>/ error: expected expression before 'else' </p>