Error : Binary operator \'==\' cannot be applied to operands of type \'UILabel?\' and \'String\'
import UIKit class ViewController: UIViewController { let So
You're trying to compare two different types. To get the actual text of UILabel, you'll need hardness.text.
hardness.text