Hello, I am trying to work with a cockpit dial that has values of 0, 1, 2, 3, and 4. I would like to map two buttons on my HOTAS to either increment the variable by 1, or decrease it by one for each press. So far, I have this code that works to increment the variable correctly with each press, though it does not stop when reaching 4.
0 1 2 3 4 (L:RIO_RADAR_RANGE, Number) 5 seq (>L:RIO_RADAR_RANGE, Number)
I have not found a way to decrease the variable after setting it this way.
I have tried these also to increase and decrease the variable, but wasn't able to get either to work.
(L:RIO_RADAR_RANGE:0, Number) 1 + (>L:RIO_RADAR_RANGE)
(L:RIO_RADAR_RANGE:0, Number) 1 - (>L:RIO_RADAR_RANGE)
I must be missing something but can't figure out out, any suggestions as to what I am missing?