What is the equivalent of if a comparison operator in CRBasic?
For example:
Public x as String
if x == "y" then
'do something else
else
'don't do anything else
endif
We based our syntax on Visual Basic. You use a single equals sign (=).
I often use Instr() when looking for a string match. That way the comparison doesn't fail if you have something like a space at the end of your second string.