If #right then b=b+1 Because you want to add +1 to b. Left would be b=b-1