0

Question may be a little weird, so here's what I mean.

Is it possible to write the following code:

(score == 3) || (score == 10) || (score == 15) || (score == 18) || (score == 20)

in a way that is faster and easier? That kind of typing gets a little annoying after a while. Thanks in advance!

pierreh
  • 159
  • 8

0 Answers0