ASK manual - Project 6, Exercise 2... help

Your line:-

if (currentLED == bounce) {direction = -1, bounce -= 1;}

should be if (currentLED == bounce) {direction =-1; bounce -= 1;}

note the added ;