title: perform segue with the same button to two different viewControllers based on information in uitextfield
body: <p>I am trying to make my view controller segue to two different view controllers with the same button. But i want the segue's to be done based on information that is in an uitextfield. e.g = if the textfield contains the right information then i will need the segue to perform to segue to viewControllerA if the information does not match my array of strings, ViewController will segue to viewControllerB.</p>
  
  <p>Sample code:</p>
  
  <pre><code>@IBOutlet var pcTextField: UITextField!
  @IBOutlet var odButton: UIButton!
  var activePcText = ["over", "left", "weak", "never"]
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      pcTextField.delegate = self
      let tapRecognizer = UITapGestureRecognizer(target: self, action: "hideKeyboard")
      view.addGestureRecognizer(tapRecognizer)
      odButton.hidden = true
      self.pcTextField.addTarget(self, action: "pcEmpty", forControlEvents: UIControlEvents.EditingChanged)
  }
  
  
  @IBAction func odButton(sender: AnyObject) { }
  </code></pre>
  
  <p>I tried to implement an if statement as..    </p>
  
  <pre><code>@IBAction func odButton(sender: AnyObject) {
      if pcTextField.text!.containsString(activePcText) { }
  }
  </code></pre>
  
  <p>I just get an error saying:</p>
  
  <pre><code>Cannot convert value of type '[String]' to expected argument type 'String'
  </code></pre>