title: Error creating UIAlertController
body: <pre><code>@IBAction func createAlert(sender: AnyObject) {
  
      if #available(iOS 8.0, *) {
          let alert = UIAlertController(title: "Hey there!", message: "Are you sure?", preferredStyle: UIAlertControllerStyle.Alert)
      } else {
  
          if let alert.addAction(UIAlertAction(title: "OK", style: .Default, handler: { (action) -&gt; Void in
  
          self.dismissViewControllerAnimated(true, completion: nil)
  
          }))
      }
  
  
          self.presentViewController(alert, animated: true, completion: nil)
  
      }
  </code></pre>
  
  <p>I keep getting errors messages. 
  1) expected '{' after 'if' condition
  2) Variable binding in a condition requires an initializer.
  please help!!!!      </p>