ReferenceStringRow
is my value of text field which must be between 8 to 55. Even after providing right input, every time else
block is executing.
//MARK:- Term Cheack
if matureTextField.text != "" {
print("term is not nil")
if ReferenceStringRow >= "8" && ReferenceStringRow <= "55"
{
print("values of term are in limit 8 to 55")
}else{
let aleartController = UIAlertController(title:"Caution", message: "Term must between 8 - 55", preferredStyle: .alert)
let aleartAction = UIAlertAction(title: "Ok", style: .default) { (action:UIAlertAction) in
print("Action Pressed")
}
aleartController.addAction(aleartAction)
self.present(aleartController, animated: true)
print("Values of term are not in limit 12 to 35")
}