StrCmp (Kernel)

StrCmp(aString bString [max])

Compares aString to bString. If max is specified, only max number of characters are compared.

Parameters:
  • aString (string) – Text string A.
  • bString (string) – Text string B.
  • max (number) – The maximum number of chars to compare.
Returns:

STRINGS_EQUAL if the strings are equal. STRING_LESSTHAN if aString is less than bString. STRING_GREATER if aString is greater than bString.

Example:

(procedure (SomeFunc &tmp [aString 40] strPtr)
        (StrCpy aString "Hello World")
        (if (== STRINGS_EQUAL (StrCmp aString "Hello World"))
                (Print "The string says Hello World")
        )
)