HELP! if(variable == -1) causing variable to = -1

I just have to say, I love how fast this forum responded!
Other forums... well, you probably know how long it can take to get answers on other forums.