Check the placement of your brackets. Also, although you CAN use them, you don't HAVE to use brackets with if/else if there is only 1 line to process:
if #pixcol = 2705961 ;statement requires brackets since there is two lines to process
{
display ok1
wait 10
}
else ;brackets are optional since there is only one line
display Exiting
And yes, please beef up the intro a little bit, unless you don't mind being restricted...
X