attiny tilt switch pwm

jremington:

if (buttonPushCounter % 0 == 0)

This line says "divide buttonPushCounter by zero and test if the remainder is zero". See any problems with that?

if (buttonPushCounter % 1 == 0)

This says "divide buttonPushCounter by 1 and test if the remainder is zero". See any problems here?

Same for tiltPushCounter. Consider using switch case statements.

well both answers equal 0...
so why does the dc motor change pwm values and turn on the motor but the tilt doesnt?
how would i go about incorporating switch case statements? I read the link and even googled examples and i dont get it.