Purpose
Compares two strings for equality (case-insensitive).
Syntax
int striCmp (in string string1, in string string2)
Parameters
string1 |
Expression evaluating to a string. |
string2 |
Expression evaluating to a string. |
Description
This function compares two strings for equality (case-insensitive).
Writing `toLower(a) == toLower(b)` is equivalent to calling `striCmp (a, b)`.
Return Value
Condition |
Return Value |
If string1 is equal to string2, regardless of case. |
0 |
If string1 is less than string2, regardless of case. |
<0 |
If string2 is less than string1, regardless of case. |
>0 |
`if (striCmp(~language, "en") == 0)` English Version: `end`