Posts: 704
Threads: 118
Joined: Sep 2010
Reputation:
0
Is that possible to check is variable value is 20, 40, 60, 80, 100, 120 and so on without checking it with || (I mean if(something == 20 || something == 40) and so on.
Posts: 485
Threads: 9
Joined: May 2011
Reputation:
0
Then no there isn't.
you're saying you want a different of checkign if something equals something, other than using '==' or switches? I don't see how that'd be done.
Posts: 2,726
Threads: 85
Joined: Jul 2010
Reputation:
0
Why don't you want to use switches/if? I see no reason not to.
Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
Mind If I ask, but can you please tell us why do you need to check too much?
We might find you an easier way instead of chicking them all.
Posts: 704
Threads: 118
Joined: Sep 2010
Reputation:
0
for example: if speed camera detected player 20 times, then he will lost car license, I mean if 20, 40, 60, 80, 100 times and so on.
Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
Just use the switch then, can't think about a way.