Page History
...
Returns 1 if the two strings are the same, 0 if not.
Remarks
Added in 2.2.6
The EQ service compares two variables as strings. When you use the BASIC+ equality operator, the variables' contents will be compared according to abstract value, which means "123" will be equal to "123.000". The EQ service, on the other hand, always does a character by character comparison.
...
Code Block |
---|
Str1 = "27"
Str2 = "27."
// BASIC+ returns 1
IsEqual = (Str1 = Str2)
// EQ service returns 0
IsEqual = SRP_String("EQ", Str1, Str2)
// Case insensitive comparison returns 0
IsEqual = SRP_String("EQ", "HELLO", "hello") |
...