I have a section of code in a programme I have:
else if (show>1189*2&&<1189*3)
else if (show>1189*3&&<1189*4)
The variable show is an already defined string which takes a number value. So I want to output the result of this equation. however this if statement could go on and on and rather than keep writing out if else I wondered if it was possible using a for loop to repeat the process of if statements so that I dont have to keep typing out if its greater than 1 thing and less than another the variable equal the number. so the last answer to an if statement would be 100.
So the very last if statement would be
else(show > 1189*100)
I dont know how clear what I am asking is so if you dont understand please say so and I will calrify as best as i can.