Determines if two strings are equal, ignoring case.
Syntax
IsEqual = SRP_String("EQC", String1, String2)
Parameters
Parameter | Description |
---|---|
String1 | One of the two strings to be compared. (REQUIRED) |
String2 | The other string to be compared. (REQUIRED) |
Returns
Returns 1 if the two strings are the same, 0 if not.
Remarks
Added in 2.2.6
The EQC 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 EQC service, on the other hand, always does a character by character comparison.
Example
Str1 = "27" Str2 = "27." // BASIC+ returns 1 IsEqual = (Str1 _EQC Str2) // EQC service returns 0 IsEqual = SRP_String("EQC", Str1, Str2) // Case comparison returns 1 IsEqual = SRP_String("EQC", "HELLO", "hello")