Function Block STRCMP

The function block STRCMP compares two strings with each other.

Note: This function is Binary-Safe. This means that UTF8 characters cannot be processed directly.

Input STR1

The input defines a string that is compared to the second string.

Input STR2

The input defines a string that is compared to the first string.

Input LEN

The input defines the maximum number of characters compared from the first character. If the input is not defined or equal to the value NULL, all characters are compared.

Output

The output returns a number as an integer. If the part of the input STR1 that was compared is smaller than the one from the input STR2, a value smaller 0 is returned. If the input STR1 is greater than the input STR2, a value greater 0 is returned. If the strings are equal, 0 is returned.