Code:
if buttonB  then 
    if step > volume then 
          volume = 0
    else
         volume= (volume - step) 
    endif
 endif