Thank you for the reply Ztrucker.
Unfortunately, your suggestion didn't work. That command causes Cmess to be defined with the quotation marks as well.
Fortunately, I have managed to find out what I did wrong: I didn't define the two variables in the If comparison as variables by surrounding...