Norm is exactly right. There is a problem with the incorrect use of braces, which would become obvious once you format/indent your code properly.

Besides that, there is also a problem with the...