What is the value of $1- ?
Looking at the rest of the code, the only value I can see being used is the result from $editbox($active). Unless you are sending some value when you call /check, $1- will be $null which is indeed != $chr(47).
Yeah, use this:
if ($left($editbox($active),1) != $chr(47)) {