I have this variable:
var number = 0;
And this number is increasing all the time. Everytime the number has increased with 200 i want to run a specific code. Atm my code is looking something similar to this:
if(number == 200 || number == 400 || number == 600 || number == 800 || number == 1000){
//run some code
};
Since the number should, in theory, be able to increase infinitely i wouldn't want to compare the value like this.
Question: how to(if possible) check if the variable is equal to all values in this specific mathematical order(every 200 number).