mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 04:25:08 +00:00
22 lines
611 B
Text
22 lines
611 B
Text
{{DISPLAYTITLE:_STRCMP}}
|
|
|
|
The [[_STRCMP]] function compares the relationship between two strings, comparing upper or lower case.
|
|
|
|
|
|
{{PageSyntax}}
|
|
: {{Parameter|comparison%}} = [[_STRCMP]]({{Parameter|string1$}}, {{Parameter|string2$}})
|
|
|
|
|
|
{{PageDescription}}
|
|
* Function returns -1 when {{Parameter|string1$}} is less than {{Parameter|string2$}}, 0 when equal or 1 when {{Parameter|string1$}} is greater than {{Parameter|string2$}}.
|
|
* Upper case letters are valued less than lower case letters in the [[ASCII]] evaluation.
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[_STRICMP]]
|
|
* [[STR$]]
|
|
* [[STRING]]
|
|
* [[ASCII]]
|
|
|
|
|
|
{{PageNavigation}}
|