can some one complie it or till me what the problem is?
Can you give more detail than just "I added "if" and it doesn't work"? Which "if" are you talking about?
You have to show a bit more effort than just provide a code dump, and a "adding an if" and it doesn't work.
Henry