mardi 26 mai 2015

Checking if a number fits between two numbers in objective c?

I was wondering if it's possible to check if a number fits between two numbers in objective c for example

if (variable == 1-100) {
     //Do Someting
}

I don't mean if the variable is equal to 1 minus 100. I want to know if the variable fits between 1 and 100. I understand this may not be possible but I'm interested to know so if it is possible please let me know.

Thanks :)

Aucun commentaire:

Enregistrer un commentaire