Comparing strings

I am using Open /R refNum to open a file to read from. Then I use FReadLine refNum, LineOfText to get a line from the file. I want to have an if statment that goes like:
if (LineOfText=="")
put stuff here
endif

but when I do this it doesn't compile and says LineOfText is an inappropiate name or symbol. How do I compare two strings.

Thanks,
Michael
If you want to test that there is text in the string you can use:

if(strlen(LineOfText) == 0)
    //put Stuff here
endif


If you want to compare some strings you can use:
if(stringmatch(LineofText, "poo"))
    print "the lineoftext was poo"
endif
As an aside, typically we use CmpStr instead of stringmatch because often we like the fact that CmpStr is case insensitive.

Software Engineer, WaveMetrics, Inc.