I am trying to do some math with user input numbers I get from UITextFields. The problem, there could be nothing in the TextField, in that case the value should be set to zero. I tried the guard statement but it seems I use it the wrong way:
guard let number = numberTextField.text else{ let number = 0}
What is wrong with this code? What should I change?