I have the following code:
Code:
if(something == 10){
//code
}
if(something == 20){
//code
}
if(something == 30){
//code
}
I want it so that it will last near infinity. I dont want to keep adding a snippet of code every 10 as I will have quite a lot of code.
I was wondering if there was a way so that it could check every 10 until near infinity, without using so much code.
__________________