switch statement problem

At the top of your sketch, before setup, add:
byte condition = 0;