Change value by scrolling

Hi guys,

I want to change a value by scrolling up and down. I want to change the weapon by changing the integer value. I wanted to know how to change the value by scrolling down and up. Scrolling up: The value increase (from 0 to 1 then from 1 to 2 and so on max until 3), Scrolling down: (from 3 to 2 then from 2 to 1 and so on max until 1. How do I do that?

Here a screen:

on wheel up make it +1 and use clamp node to set it between 0 and 3. Do the same with wheel down but make it -1.

It doesnt really work. Just with clamp or is something missing. Mouse Wheel Up -> Clamp->Plus 1 ->Set Change Weapon

It works now. Thank you!