Hi. The reason you're getting errors is not from this code segment, but probably from something before it that you haven't posted, like a bracket you forgot to open or close before this point. I copied and pasted the code into a plugin and it compiled fine. If you wouldn't mind, please post the entirety of the code, and we can try to find the syntactical error, wherever it is. One error will often lead to multiple errors in areas that are actually correct.
As well, I personally think you should have the result of your conditional statements be on the lines below the statement, because what you have is a little hard for me to read.
And finally, why have you tried to cover up that your Windows user name is "deadman"? It's not like that's not your forum account name...