Could you post the definition of the global vars as well? If blank_chat_text is a string, I think, you cannot use

Code:
if (blank_chat_text != 1