Trying to check if double variable obtained from textfield has a value or not
let value:Double? = Double(valueTextfield.text!)
if(value.isEmpty()) X
if(value. == nil) X
if(value == 0) X
How do I do this
Aucun commentaire:
Enregistrer un commentaire