Have you got the if statement working to alternate between + and -? If so add further code in each branch to perform the different operations.