This shouldn't affect the script's ability to work, but it's good practice to use all lowercase on keywards such as "if","else","return",etc. I notice you alternated with the IF and else, just thought I'd let you know.
Aside from that, it appears you have your condition in the wrong order. Try using >= instead of => on the third if statement. Also, I assume you put the echo there because it wasn't working. If you need to know how to kick, try /help /kick and cycle through $comchan.