You didn’t read my post where I said don’t necro old threads, create your own and to use code-tags when positng.
Looking at your code, you have an “if” condition with no statements on it. I would suggest following some C# programming tutorials. Guessing your way through programming is going to be a painful process.