Multiple conditions in prepare for segue not working
<p>I am using prepare for segue to send data between view controllers, The first if condition works when the identifier is "ShowPost" and sends the url to the view controller. But when the identifier is "profileInfo" the segue does not send data. </p>

<pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  if segue.identifier == "ShowPost" {
    if let indexPath = tableView.indexPathForSelectedRow {
      let _url = searchResults[indexPath.row]["link"].stringValue
      let destinationController = segue.destinationViewController as! ShowPostViewController
      destinationController.url = _url
    }
    else if segue.identifier == "ProfileInfo" {
      if let indexPath = tableView.indexPathForSelectedRow {
        let _userName = searchResults[indexPath.row]["owner"]["display_name"].stringValue
        // print("name dc: \(destinationController.userName)")
        let _userId = searchResults[indexPath.row]["owner"]["user_id"].stringValue
        let _userReputation = searchResults[indexPath.row]["owner"]["reputation"].stringValue
        let _ppImageString = searchResults[indexPath.row]["owner"]["profile_image"].stringValue
        let destinationController = segue.destinationViewController as! ProfileInfoViewController
        destinationController.userName = _userName
        destinationController.userId = _userId
        destinationController.userReputation = _userReputation
        destinationController.ppImageString = _ppImageString
      }
    }
  }
}
</code></pre>