Are identical strings ever not equal?

BlitzMax Forums/BlitzMax Beginners Area/Are identical strings ever not equal?

If they have the same characters, they're considered equal. when you make an object comparison MyObject1 = MyObject2, the comparison is based on memory addresses so two object with the same values in fields are different if they're not exactly pointing to the same instance. Strings are an exception to this mechanism. When two strings are compared, the comparison is not based on memory addresses but in their values. the exception also makes that when a string variable is asigned to another string variable, the value is copied instead of making them point to the same instance.

In general terms, think of string variables as if they were not objects, and use them in the same way you would use a Int, a Float, a Double or a Long numeric variable.