I'm trying to call on a segue every time a cell in my array is clicked. I keep getting to errors. 

1. Type 'addPRTableViewController?' has no member text.
2. Value of type 'String' can never be nil, Comparison isn't allowed.

Here's my code

Viewcontroller I want to segue FROM when a cell is clicked

```
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {

    let text = "Your text"
    performSegueWithIdentifier("YourSegue", sender: text)
}

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    if segue.identifier == "YourSegue" {
        let yourOtherVC = segue.destinationViewController as? addPRTableViewController
        if let text = sender as? String {
            addPRTableViewController?.text = text // Error 1
        }
    }
}

```

View Controller I want to segue TO when a cell in the other view controller is clicked

```
override func viewDidLoad() {
    super.viewDidLoad()
    tableView.tableFooterView = UIView()
    txtPR.delegate = self

    var text = String() 

    if text != nil { // Error 2
        txtPR.text = text

    }

}

```

I'm not quite sure why I'm getting this. Any info would be appreciated.