mercredi 7 décembre 2016

If statement, not higher than or equal to?

I am making an if statement, which should do something when i is not higher than or equal to 2. How do I state this?

I now have this:

if (i >= 0) {
  // skip this
} else {
  // do something
}

Which looks absolutely horrible.

Aucun commentaire:

Enregistrer un commentaire