You're welcome.
It should be possible, I tried that at first.
But it didnt work very well for my purpose.
} else if (encoderPos >= 30005 ) {
something like x = x + 1 and the value of the integer goes up by one.
a constrain will keep the values within limits
something like flashamount = constrain(flashamount, 30, 260);