Push Button with two functions

No surprises there, the compiler doesn't understand psuedo-code. If you want help with your code, you'll actually have to post it. (Read the very top thread).