there is a variable that can change from 0 - 100. And I would like the step size to be variable.
e.g. 0, 1, 2, 3.....
2, 4, 6 ....
10, 20, 30, ...... etc
aside from a huge if else statement like this
if (value < stepSize)value = 0;
else if(value < stepSize * 2) value = stepSize * 1;
else if(value < stepSize * 3) value = stepSize * 2;
what can I do?
I thought it would be easy to do, but I have spent all day without success.
thanks