title: How do you get a text field input in you view controller code?
body: <p>I’m trying to make Xcode print "Nice!" when you type in "Hi". I've used a <code>IBOutlet</code>, but I don’t know how to use the user input in my code. Also BTW I'm using <code>Storyboard</code> and not SwiftUI. It also gives me an error when I try to compare the datatype <code>UIViewController</code> and a <code>String</code>. Here is my view controller code(with the default App Delegate and Scene Delegate code):</p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
  
   @IBOutlet var yeet: [UITextField]!
   override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view.
   }
  
   func fuel(_ yeet:UIViewController) -&gt; Int {
  
      if yeet == ("hi") {
          print("Nice!")
      }
  
   }
  }
  </code></pre>