Maptitude GISDK Help |
Compares two strings to see if they match.
Added to Version 2014.
string = CompareStrings (string s1, string s2 [, array opts])
Argument |
Contents |
s1 |
The first of the two strings to compare |
s2 |
The second of the two strings to compare |
Option |
Type |
Contents |
Case Sensitive |
Boolean |
If "True" the comparison is case sensitive, if "False" (the default) the comparison is not case sensitive |
Returns a boolean "True" (if they match) or "False" (if they don't)
A null value for either is considered an empty string, so if they are both null, CompareStrings() returns "True"; if one is null, CompareStrings() returns "False"
Can also be called as StrEq().
str1 = null
str2 = null
ret = CompareStrings(str1, str2,)
// ret = "True"
str1 = "foo" // str2 is still null
ret = CompareStrings(str1, str2,)
// ret = "False"
str2 = "Foo" // str1 is still "foo"
ret = CompareStrings(str1, str2,)
// ret = "True"
// str1 is still "foo" and str2 is still "Foo"
ret = CompareStrings(str1, str2, {{"Case Sensitive", True}})
// ret = "False"
Function |
Summary |
CompareStrings() | Compares two strings to see if they match |
Returns a concatenated string separated by the delimiter |
|
Divides a string into pieces separated by the specified delimiters |
|
Divides a string into pieces based on the position of vertical bars (|) in that string |
|
StrEq() | Compares two strings to see if they match. |
Extracts one word from a string |
©2025 Caliper Corporation | www.caliper.com |