samedi 25 mars 2017

'<' is not a prefix unary operator

I want to make an if statement with an greater than symbol in it. When I type the code it gives me this error: ''<' is not a prefix unary operator'

This is my code:

 if messages.count == >75 {
        navigationItem.rightBarButtonItem?.isEnabled = true
    } else if messages.count == <75 {
        navigationItem.rightBarButtonItem?.isEnabled = false
    }

Hope someone can help!

Aucun commentaire:

Enregistrer un commentaire