Adjust Map Zoom when input value is changed


I have a map element with Current Geographic Position as marker address. I also have a SliderInput with Min Value 10 and Max Value 1000. I’m trying to adjust the map zoom when the slider is moved. So for example: When Slider input value is changed → adjust map zoom (when SliderInput’s Value is > 10 and < 40 Adjust Zoom to Zoom Level 11. When SliderInput’s Value is > 40 and < 70 Adjust Zoom to Zoom Level 10 etc).

I can get it to work ONE time. So if the initial value of the SliderInput is 100 (initial zoom 8) and I slide it down to 35 it zooms to zoom level 11. But when I slide it up to 50 it doesn’t change. What am I doing wrong?