newbie is correct, you have made a simple error here. Please read the link provided.

I have also moved this thread to Loops & Control Statements