StringCompare() Function
- Last UpdatedNov 23, 2018
- 1 minute read
Compares two strings with each other and returns a Boolean result (0 = strings are equal). The case of each letter is respected so that, for example, ‘A’ is considered not equal to ‘a’.
Syntax
result = StringCompare (string1, string2)
Parameters
string1
A literal string, message tagname, or string expression.
string2
A literal string, message tagname, or string expression.
Example(s)
StringCompare ("Apple","Apple") returns 0.
StringCompare ("Apple","apple") returns 1.
This string compares the two message tags and returns a discrete result (0 or 1):
StringCompare (mtag1, mtag2)