Almost.
This is wrong though:
(750 < value < 900)
that will test if 750 is less than value - if it is, the (750 < value) will be 1 else 0. And either way, 0 or 1 are both lower than 900, so that will always return true.
(750 < value) && (value < 900)
You may have to deal with debouncing the switch (there's lots of material on this around the web), depending on your use case.