Code:
if buttonB then
 if volume - Vstep >= vstep then
  volume = volume - Vstep
 else
  volume = 0   
 endif
endif