I am completely new to coding and have been learning through sources such as skillshare and Udemy. In one of the projects, I was asked to create a simple app which has the features of a random number generator from 1-100. The number placed in the text input should then tell us if the input number was more or less than the randomly generated number. 

The code is as follows:

```
@IBOutlet weak var numberText: UITextField!

@IBAction func guessButton(_ sender: Any) {
    randomNumber(guess: "guess")
}
@IBOutlet weak var answerText: UILabel!

var random = arc4random_uniform(100);

func randomNumber (guess: String) {
    if Int(numberText.text!) != nil {
        let numGuess = Int(numberText.text!);
        let random = Int(arc4random_uniform(100));
    else if numGuess! > random {
            answerText.text = "try a smaller number"
    else if numGuess! < random {
            answerText.text = "try a larger number"
            }
    else if numGuess! == random {
            }
        }

        answerText.text = "you got it right, the answer is \(numGuess)!"

    } else {
        answerText.text = "Try typing numbers from 1-100"
    }
}

```

I would like to know why I am getting the error "expected expression" for my else if codes. Also, is it possible to do this with the switch case?

I am not sure if my method is even the right way of creating this app, so please feel free to give me some pointers!